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