public function call($command, array $arguments = array()) { if ($command === 'migrate' || $command === 'migrate:reset') { $arguments['--type'] = $this->input->getOption('type'); } return parent::call($command, $arguments); }
/** * 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); }
/** * Get the command options. * * @return array */ public function getOptions() { return array_merge(parent::getOptions(), [['addon', null, InputOption::VALUE_OPTIONAL, 'The addon to reset migrations.']]); }