class Illuminate / Foundation / Console / RuleMakeCommand

RuleMakeCommand

Extends

Properties

protected

$name string

The console command name.

Default: 'make:rule'
protected

$description string

The console command description.

Default: 'Create a new validation rule'
protected

$type string

The type of class being generated.

Default: 'Rule'

Methods

protected

buildClass ( $name ) : string

Build the class with the given name.

Parameters

  • $name string
protected

getStub ( ) : string

Get the stub file for the generator.

protected

getDefaultNamespace ( $rootNamespace ) : string

Get the default namespace for the class.

Parameters

  • $rootNamespace string
protected

getOptions ( ) : array

Get the console command options.