/**
  * @return void
  */
 public function fire()
 {
     $fullPath = $this->createBaseMigration();
     $this->files->put($fullPath, $this->files->get(__DIR__ . '/stubs/database.stub'));
     $this->info('Migration created successfully!');
     $this->composer->dumpAutoloads();
 }
 /**
  * Execute the console command.
  * @return void
  */
 public function fire()
 {
     $table = $this->notadd['config']['queue.failed.table'];
     $tableClassName = Str::studly($table);
     $fullPath = $this->createBaseMigration($table);
     $stub = str_replace(['{{table}}', '{{tableClassName}}'], [$table, $tableClassName], $this->files->get(__DIR__ . '/stubs/failed_jobs.stub'));
     $this->files->put($fullPath, $stub);
     $this->info('Migration created successfully!');
     $this->composer->dumpAutoloads();
 }
 /**
  * @return void
  */
 public function fire()
 {
     $name = $this->input->getArgument('name');
     $table = $this->input->getOption('table');
     $create = $this->input->getOption('create');
     if (!$table && is_string($create)) {
         $table = $create;
     }
     $this->writeMigration($name, $table, $create);
     $this->composer->dumpAutoloads();
 }
예제 #4
0
 /**
  * @return void
  */
 public function fire()
 {
     parent::fire();
     $this->composer->dumpAutoloads();
 }