We are familiar with the create controller, make migration, make: model, controller, migration commands but few of us have tried any other commands to create model, migration and controller.
There is an artisan command for creating all three of them.
php artisan make:model Todo –mcr
If you look up help for make: model command you will get some information like this:
-m, --migration Create a new migration file for the model.
-c, --controller Create a new controller for the model.
-r, --resource Indicates if the generated controller should be a resource controller
In newer versions of Laravel i.e. above version 5.6 you can use Todo –a instead of –mcr.
php artisan make:model Todo -a