tarre / beyond-crud-helpers
"Laravel Beyond Crud" 的辅助命令
1.0.1
2022-04-23 09:15 UTC
Requires
- php: ^7.4|^8.0
- laravel/framework: *
- nette/php-generator: ^3.6
Suggests
- doctrine/dbal: The mmake:model and mmake:dto can read your database and fill the blanks
- spatie/data-transfer-object: The mmake:dto comman usesspaties dto package, not required, change config file to remove dependency
This package is auto-updated.
Last update: 2024-09-23 14:54:54 UTC
README
本软件包提供了许多辅助命令,用于 Spatie 的 Laravel BEyond CRUD 项目。
安装
composer require --dev tarre/beyond-crud-helpers
php artisan vendor:publish --provider=Tarre\\BeyondCrudHelpers\\ServiceProvider
- 检查
config/beyond-crud-helper.php
文件,但默认设置通常是正确的
使用方法
php artisan mmake:
双重 M
可用命令
命令参数 table
需要安装 doctrine/dbal
新命令
mmake:dto {name} {location?} {--table=} {--collection} {--force}
mmake:action {name} {location?} {--construct} {--force}
实验性命令
mmake:model-getter-migration {model} {location}
(这是尝试为给定模型的 getter 创建操作的尝试)
传统命令
mmake:controller {name} {location?} {--invoke} {--api} {--model=} {--force}
mmake:event {name} {location?} {--model=} {--force}
mmake:exception {name} {location?} {--force}
mmake:job {name} {location?} {--model=} {--force}
mmake:listener {name} {location?} {--force}
mmake:model {name} {location?} {--table=} {--force}
mmake:notification {name} {location?} {--model=} {--force}
mmake:observer {name} {location?} {--model=} {--force}
mmake:policy {name} {location?} {--model=} {--force}
mmake:query {name} {location?} {--model=} {--force}
mmake:request {name} {location?} {--force}
mmake:resource {name} {location?} {--collection} {--force}
mmake:rule {name} {location?} {--force}