/** * Execute the console command. * * @return mixed */ public function fire() { if ($this->input->getOption('fallback')) { parent::fire(); return; } $name = $this->validateMigrationName(); $files = $this->readMigrationFiles(); $name = $this->setUniqueMigrationName($name, $files); // start: Original Laravel code $table = $this->input->getOption('table'); $create = $this->input->getOption('create'); if (!$table && is_string($create)) { $table = $create; } // Now we are ready to write the migration out to disk. Once we've written // the migration out, we will dump-autoload for the entire framework to // make sure that the migrations are registered by the class loaders. $this->writeMigration($name, $table, $create); $this->composer->dumpAutoloads(); // end: Original Laravel code }
/** * Execute the console command. */ public function fire() { $this->dispatch(new ConfigureCreator($this, $this->input, $this->creator)); $this->creator->setInput($this->input); parent::fire(); }