1php artisan make:model ModelName -a
2// -a stands for all (Model, Controller, Factory and Migration)
3// Note: The above command will work successfully in Laravel 5.5 or > versions
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