📌  相关文章
📜  制作模型工厂和控制器 laravel - PHP 代码示例

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

代码示例3
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