Laravel 5.4 create model, controller and migration in single artisan command

后端 未结 14 959
一整个雨季
一整个雨季 2020-12-22 14:35

I can create a model and resource controller (binded to model) with the following command

php artisan make:controller TodoController --resource --model=Todo
         


        
14条回答
  •  春和景丽
    2020-12-22 15:39

    Instead of using long command like

    php artisan make:model  --migration --controller --resource
    

    for make migration, model and controller, you may use even shorter as -mcr.

    php artisan make:model  -mcr
    

    For more MOST USEFUL LARAVEL ARTISAN MAKE COMMANDS LISTS

提交回复
热议问题