(eg: Winter.Blog)} {settings? : The name of the settings model to generate. (eg: BlogSettings)} {--f|force : Overwrite existing files with generated files.} {--uninspiring : Disable inspirational quotes} '; /** * @var string The console command description. */ protected $description = 'Creates a new settings model.'; /** * @var string The type of class being generated. */ protected $type = 'Settings Model'; /** * @var string The argument that the generated class name comes from */ protected $nameFrom = 'settings'; /** * @var array A mapping of stubs to generated files. */ protected $stubs = [ 'scaffold/settings/model.stub' => 'models/{{studly_name}}.php', 'scaffold/settings/fields.stub' => 'models/{{lower_name}}/fields.yaml' ]; /** * Get the desired class name from the input. */ protected function getNameInput(): string { return parent::getNameInput() ?: 'Settings'; } }