class
Illuminate
/
Foundation
/
Console
/
ComponentMakeCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ComponentMakeCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'make:component'
protected
$description string
The console command description.
Default: 'Create a new view component class'
protected
$type string
The type of class being generated.
Default: 'Component'
Methods
public
handle ( ) : void
Execute the console command.
protected
writeView ( $onSuccess ) : void
Write the view for the component.
Parameters
- $onSuccess callable|null
protected
buildClass ( $name ) : string
Build the class with the given name.
Parameters
- $name string
protected
getView ( ) : string
Get the view name relative to the components directory.
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
getOptions ( ) : array
Get the console command options.