option('model'); $modelLower = strtolower($model); return str_replace( ['DummyModel', 'model'], [$model, $modelLower], $stub ); } protected function getOptions() { return [ ['model', null, InputOption::VALUE_REQUIRED, 'The name of the model'], ['path', null, InputOption::VALUE_OPTIONAL, 'The optional path for the generated files'], ]; } }