class
Illuminate
/
Routing
/
Console
/
ControllerMakeCommand
ControllerMakeCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'make:controller'
protected
$description string
The console command description.
Default: 'Create a new controller class'
protected
$type string
The type of class being generated.
Default: 'Controller'
Methods
protected
getStub ( ) : string
Get the stub file for the generator.
protected
resolveStubPath ( $stub ) : string
Resolve the fully-qualified path to the stub.
Parameters
- $stub string
protected
getDefaultNamespace ( $rootNamespace ) : string
Get the default namespace for the class.
Parameters
- $rootNamespace string
protected
buildClass ( $name ) : string
Build the class with the given name.
Parameters
- $name string
protected
buildParentReplacements ( ) : array
Build the replacements for a parent controller.
protected
buildModelReplacements ( array $replace ) : array
Build the model replacement values.
Parameters
- $replace array
protected
parseModel ( $model ) : string
Get the fully-qualified model class name.
Parameters
- $model string
protected
buildFormRequestReplacements ( array $replace , $modelClass ) : array
Build the model replacement values.
Parameters
- $replace array
- $modelClass string
protected
generateFormRequests ( $modelClass , $storeRequestClass , $updateRequestClass ) : array
Generate the form requests for the given model and classes.
Parameters
- $modelClass string
- $storeRequestClass string
- $updateRequestClass string
protected
getOptions ( ) : array
Get the console command options.
protected
afterPromptingForMissingArguments ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : void
Interact further with the user if they were prompted for missing arguments.
Parameters
- $input Symfony\...\InputInterface
- $output Symfony\...\OutputInterface