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

后端 未结 14 957
一整个雨季
一整个雨季 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:24

    To make mode, controllers with resources, You can type CMD as follows :

     php artisan make:model Todo -mcr
    

    or you can check by typing

    php artisan help make:model
    

    where you can get all the ideas

提交回复
热议问题