You almost guessed the right answer. Yes, you can make a model + migration + controller, all on one line using the command:
php artisan make:model --migration --controller Test
Short version: php artisan make:model -m -c Test
Result:
Model created successfully. Created Migration: 2017_02_27_153716_create_tests_table Controller created successfully.
For additional syntax, use the -h or --help flag with the make:model command, it will show all available options for this command. You can also create not just an empty controller, but a resource controller with predefined CRUD methods. To do this, use the optional -r or --resource flag.
source share