📌  相关文章
📜  创建迁移、控制器、模型和播种器 laravel - PHP 代码示例

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

代码示例1
php artisan make:model MODEL_PATH\MODEL_NAME -mcrs
or
php artisan make:model MODEL_PATH\MODEL_NAME -a
  
-a, --all Generate a migration, factory, and resource controller for the model 
-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
-s, --seeder Create a new seeder file for the model.