php artisan make:model
Code GenerationCreate a new Eloquent model
Options & Flags
Available options for this command
-mCreate migration file
-cCreate controller
-rCreate resource controller
-fCreate factory
-sCreate seeder
-aCreate all (migration, factory, seeder, controller)
Examples
Common usage examples
Create a model
php artisan make:model PostCreate model with migration
php artisan make:model Post -mCreate model with all related files
php artisan make:model Post -aRelated Commands
You might also find these useful