adetxt / laravel-fillable-generator
自动生成模型的可填充字段
1.2.1
2023-03-24 15:39 UTC
Requires
- nette/php-generator: ^4.0.6
README
本包提供了一个 Laravel Artisan 命令,用于自动生成模型的可填充字段。目前仅支持 MySQL 数据库。
安装
本包可以通过 Composer 安装。
composer require adetxt/laravel-fillable-generator --dev
使用
您可以通过以下 artisan 命令开始生成模型的可填充字段
php artisan generate-model-fillable
指定模型
php artisan generate-model-fillable User Post Category
选项
-P, --path Model path (default: app\Models)
--all-columns Include all columns
-E, --excludecol[=EXCLUDECOL] Exclude column [default: "id,created_at,updated_at,deleted_at"]