/** * Get the console command options. * * @return array */ protected function getOptions() { return array_merge(parent::getOptions(), [['versions', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by version'], ['scopes', 'S', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by scopes']]); }
/** * Get the console command options. * * @return array */ protected function getOptions() { $options = parent::getOptions(); foreach ($options as $key => $option) { if ($option[0] == 'sort') { unset($options[$key]); } } return array_merge($options, [['sort', null, InputOption::VALUE_OPTIONAL, 'The column (domain, method, uri, name, action) to sort by'], ['versions', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by version'], ['scopes', 'S', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by scopes'], ['protected', null, InputOption::VALUE_NONE, 'Filter the protected routes'], ['unprotected', null, InputOption::VALUE_NONE, 'Filter the unprotected routes']]); }
/** * Create a new route command instance. * * @param \Illuminate\Contracts\Foundation\Application $app */ public function __construct(Application $app) { // $this->description = '[+] '.$this->description; parent::__construct($app['router']); }