I can create a model and resource controller (binded to model) with the following command
php artisan make:controller TodoController --resource --model=Todo
How I was doing it until now:
php artisan make:model Customer
php artisan make:controller CustomersController --resource
Apparently, there’s a quicker way:
php artisan make:controller CustomersController --model=Customer
Instead of using long command like
php artisan make:model <Model Name> --migration --controller --resource
for make migration, model and controller, you may use even shorter as -mcr.
php artisan make:model <Model Name> -mcr
For more MOST USEFUL LARAVEL ARTISAN MAKE COMMANDS LISTS