📌  相关文章
📜  模型表和控制器的 laravel 一个命令 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:43.443000             🧑  作者: Mango

代码示例5
php artisan make:model Products -mcr

  -m, --migration Create a new migration file for the model.
  -c, --controller Create a new controller for the model.
  -r, --resource Indicates if the generated controller should be a resource controller
   
newer versions of laravel > 5.6
    
    php artisan make:model Products -a
      
    -a, --all Generate a migration, factory, and resource controller for the model