option('queued') ? 'queued.stub' : 'stub'; if ($this->option('destructive')) { return $this->resolveStubPath("/stubs/nova/destructive-action.{$extension}"); } return $this->resolveStubPath("/stubs/nova/action.{$extension}"); } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace.'\Nova\Actions'; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['destructive', null, InputOption::VALUE_NONE, 'Indicate that the action deletes / destroys resources'], ['queued', null, InputOption::VALUE_NONE, 'Indicates the action should be queued'], ]; } }