option('model'); $action = $this->option('action'); return str_replace( ['DummyModel', 'DummyAction'], [$model, $action], $stub ); } protected function getOptions() { return [ ['model', null, InputOption::VALUE_REQUIRED, 'The name of the model'], ['action', null, InputOption::VALUE_REQUIRED, 'The action type (Create, Read, Update, Delete)'], ]; } }