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

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

代码示例2
# to make only Model Class
php artisan make:model Customer

# to make resource controller
php artisan make:controller CustomersController --resource

# make controller for already existing Model Class (binded to model)
php artisan make:controller CustomersController --model=Customer

# to make  model, migration and controller and factory all in one command
php artisan make:model Modelname -crmf