lokat/lb-domain-maker
Composer 安装命令:
composer require lokat/lb-domain-maker
包简介
Create domain model/controller/migration for laravel-boilerplate by rappasoft
README 文档
README
Creates a model, migration, controller in provided domain
Requires
Install
composer require lokat/lb-domain-maker
Run
In your Laravel project root folder:
php artisan domain:make Example
The command will create a model with Example name in app/Domains/Example/Models folder.
Options
You can create the domain and run the migration by running the command with the --migrate option:
php artisan domain:make Example --migration
or
php artisan domain:make Example -m
You may also specify the name of the model by running the command with the --model option:
php artisan domain:make Example --model=ModelName
or
php artisan domain:make Example -M ModelName
If you want to create a controller, run the command with --controller option:
php artisan domain:make Example --controller
or
php artisan domain:make Example -c
The controller will be created on app/Domains/Example/Http/Controllers/Backend/ExampleController
You may also create the controller for frontend by running the command with --frontend option:
php artisan domain:make Example --controller --frontend
or
php artisan domain:make Example -c -f
You may also create the controller with resource by running the command with --resource option:
php artisan domain:make Example --resource
or
php artisan domain:make Example -r
You may want to create the controller without the model by running the command with --no-model option:
php artisan domain:make Example --controller --no-model
or
php artisan domain:make Example -cN
Add service
php artisan domain:make Example --service
or
php artisan domain:make Example -s
It will create service at
app/Domains/Example/Services/ExampleService.php
Add observer
php artisan domain:make Example --observer
or
php artisan domain:make Example -o
It will create observer at
app/Domains/Example/Observers/ExampleObserver.php
Add model resource
php artisan domain:make Example --model-resource
or
php artisan domain:make Example -R
It will create model resource at
app/Domains/Example/Resources/ExampleResource.php
Add request
php artisan domain:make Example --request
or
php artisan domain:make Example -t
It will create 2 form requests at
app/Domains/Example/Requests/ExampleStoreRequest.php
app/Domains/Example/Requests/ExampleUpdateRequest.php
Add livewire datatable
php artisan domain:make Example --datatable
or
php artisan domain:make Example -d
It will create 2 livewire datatables at
app/Domains/Example/Livewire/Frontend/ExamplesTable.php
app/Domains/Example/Livewire/Backend/ExamplesTable.php
lokat/lb-domain-maker 适用场景与选型建议
lokat/lb-domain-maker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 749 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lokat/lb-domain-maker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lokat/lb-domain-maker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 749
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-01