Artisan.page The Laravel Artisan cheatsheet
make:model
Create a new Eloquent model class
Terminal
Options
allOptional
Generate a migration, seeder, factory, and resource controller for the model
apiOptional
Indicates if the generated controller should be an API controller
controllerOptional
Create a new controller for the model
factoryOptional
Create a new factory for the model
forceOptional
Create the class even if the model already exists
migrationOptional
Create a new migration file for the model
pivotOptional
Indicates if the generated model should be a custom intermediate table model
resourceOptional
Indicates if the generated controller should be a resource controller
seedOptional
Create a new seeder file for the model
Arguments
nameRequired
The name of the class