kemboielvis/laravel-crud-generator
Composer 安装命令:
composer require kemboielvis/laravel-crud-generator
包简介
A laravel CRUD generator
README 文档
README
This package is a Laravel CRUD generator that will generate CRUD code for you simply. This package will reduce the time to create a module in Laravel.
It generates the following code:
- Model
- Controller
- Store and Update Request
- Resource
Installation
- Run
composer require kemboielvis/laravel-crud-generator --dev
-
To generate Code for specefic model
The model name should be inside the
App/ModelsDirectoryFor the CRUD to be generated fill out the fillables then run the command below
php artisan crud:generate {ModelName}
- Generate code for all model in
App/Models/**For the crud to be generated fill out all the fillables then run the command below
php artisan crud:generate
The code will be generated in the following directories:
- Controllers:
App/Http/Controllers - StoreRequest:
App/Http/Requests/{ModelName}/StoreRequest.php - UpdateRequest:
App/Http/Requests/{ModelName}/UpdateRequest.php - Resource:
App/Http/Resources/{ModelName}/{ModelName}Resource.php
Warning
When using this code generator you should be careful because it will overwrite the existing files and written code
License
The Laravel CRUD Generator is open-sourced software licensed under the MIT license.
For new Features and Bugs and Suggestions
If you have any new features or bugs you can create an issue or create a pull request.
kemboielvis/laravel-crud-generator 适用场景与选型建议
kemboielvis/laravel-crud-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 548 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 08 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kemboielvis/laravel-crud-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kemboielvis/laravel-crud-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 548
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-02