1php artisan make:model MODEL_PATH\MODEL_NAME -mcrs
2or
3php artisan make:model MODEL_PATH\MODEL_NAME -a
4
5-a, --all Generate a migration, factory, and resource controller for the model
6-m, --migration Create a new migration file for the model.
7-c, --controller Create a new controller for the model.
8-r, --resource Indicates if the generated controller should be a resource controller
9-s, --seeder Create a new seeder file for the model.
1php artisan make:model Customer
2php artisan make:controller CustomersController --resource
1php artisan make:model Products -mcr
2
3 -m, --migration Create a new migration file for the model.
4 -c, --controller Create a new controller for the model.
5 -r, --resource Indicates if the generated controller should be a resource controller
6
7newer versions of laravel > 5.6
8
9 php artisan make:model Products -a
10
11 -a, --all Generate a migration, factory, and resource controller for the model