📌  相关文章
📜  在单个命令 laravel 中创建模型、控制器和迁移 - PHP 代码示例

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

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