class
Illuminate
/
Database
/
Console
/
Factories
/
FactoryMakeCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
FactoryMakeCommand
Extends
Properties
protected
$name string
The console command name.
Default: 'make:factory'
protected
$description string
The console command description.
Default: 'Create a new model factory'
protected
$type string
The type of class being generated.
Default: 'Factory'
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
buildClass ( $name ) : string
Build the class with the given name.
Parameters
- $name string
protected
getPath ( $name ) : string
Get the destination class path.
Parameters
- $name string
protected
guessModelName ( $name ) : string
Guess the model name from the Factory name or return a default model name.
Parameters
- $name string
protected
getOptions ( ) : array
Get the console command options.