kemboielvis/laravel-crud-generator
最新稳定版本:v1.3.1
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.
统计信息
- 总下载量: 541
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-02