services as $service) { if ($this->option('clear', false)) { return app($service)->clearAll(); } if ($this->option('full', false)) { app($service)->clearAll(); app($service)->syncAll(); return; } app($service)->syncAll(); } } /** * Get the console command arguments. * @return array */ protected function getArguments() { return []; } /** * Get the console command options. * @return array */ protected function getOptions() { return [ ['clear'], ['full'] ]; } }