php artisan make controller model and migration

64

php artisan make:model Todo -mcr
You can do it with the following command:

php artisan make:model post -mcr

Brief :
-m, to create migration
-c to create controller
-r to specify the controller has resource
php artisan make:controller PhotoController --resource --model=Photo
php artisan make:model Todo -a

Comments

Submit
0 Comments