option('plain')) { return __DIR__.'/stubs/controller.plain.stub'; } return __DIR__.'/stubs/controller.stub'; } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace.'\Http\Controllers'; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['plain', null, InputOption::VALUE_NONE, 'Generate an empty controller class.'], ]; } }