标签:eloquent ide artisan com -- pre generator mod 开始
1.添加PHP扩展
composer require krlove/eloquent-model-generator --dev
2.注册GeneratorServiceProvider类
‘providers‘ => [ // ... Krlove\EloquentModelGenerator\Provider\GeneratorServiceProvider::class, ];
3.开始生成
php artisan krlove:generate:model Film --table-name=films --output-path=./Model --namespace=App\\Model
标签:eloquent ide artisan com -- pre generator mod 开始
原文地址:https://www.cnblogs.com/otkur/p/14413058.html