php artisan make:model -mcr Task
Model created successfully. Created Migration: 2018_08_16_082225_create_tasks_table Controller created successfully.
You will get all file in one command.
Model created successfully. Created Migration: 2018_08_16_082225_create_tasks_table Controller created successfully.
You will get all file in one command.
You can use this command for create model and controller and migration at same time:( You can use --migration Instead of -m and you can use --controller Instead of -c)
php artisan make:model MODEL_NAME -c -m
or you can use for create model , controller ,migration and factory at same time ( Youc can use --all Instead of -a):
php artisan make:model MODEL_NAME -a
you can make model + migration + controller, all in one line, reference this link
Laravel 5.4 create model, controller and migration in single artisan command
php artisan make:migration create_products_table //create only Migration file
php artisan make:model Product -m //Create Migration, Model file
php artisan make:model Product -mcr //For Create Migration,Model,Controller with resource