public function call($command, array $arguments = array())
 {
     if ($command === 'migrate' || $command === 'migrate:reset') {
         $arguments['--type'] = $this->input->getOption('type');
     }
     return parent::call($command, $arguments);
 }
Ejemplo n.º 2
0
 /**
  * Get the command options.
  *
  * @return array
  */
 public function getOptions()
 {
     return array_merge(parent::getOptions(), [['addon', null, InputOption::VALUE_OPTIONAL, 'The addon to reset migrations.'], ['no-addons', null, InputOption::VALUE_NONE, 'Don\'t run addon migrations, only laravel migrations.']]);
 }
 public function call($command, array $arguments = [])
 {
     $command = 'artificer:' . $command;
     return parent::call($command, $arguments);
 }
Ejemplo n.º 4
0
 /**
  * Get the command options.
  *
  * @return array
  */
 public function getOptions()
 {
     return array_merge(parent::getOptions(), [['addon', null, InputOption::VALUE_OPTIONAL, 'The addon to reset migrations.']]);
 }