class
Illuminate
/
Foundation
/
Console
/
ModelMakeCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ModelMakeCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'make:model'
protected
$description string
The console command description.
Default: 'Create a new Eloquent model class'
protected
$type string
The type of class being generated.
Default: 'Model'
Methods
public
handle ( ) : void
Execute the console command.
protected
createFactory ( ) : void
Create a model factory for the model.
protected
createMigration ( ) : void
Create a migration file for the model.
protected
createSeeder ( ) : void
Create a seeder file for the model.
protected
createController ( ) : void
Create a controller for the model.
protected
createPolicy ( ) : void
Create a policy file for the model.
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.
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