kamalsroor/crud-generator
最新稳定版本:1.0.8
Composer 安装命令:
composer require kamalsroor/crud-generator
包简介
This package is a useful tool to generate simple crud for Kamalsroor/scaffoldingNew
README 文档
README
Introduction
This package is a useful tool to generate simple crud for Kamalsroor/scaffoldingNew
the files that will be generated is:
- Lang Files (ar & en)
- Breadcrumb File
- View Files
- Api Resource Files
- Migration Files
- Factory File
- Policy Files
- Controller Files
- Model Files
- Request Files
- Filter Files
- Test Files
- Excel Import Export
- Soft Delete
- Swagger Api
Installation
composer require kamalsroor/crud-generator --dev
Configuration
You should add config file using the following command to configure the supported resources.
php artisan vendor:publish --provider="KamalSroor\CrudGenerator\CrudServiceProvider"
Then add the following comment line in the routes/dashboard.php and routes/api.php files:
/* The routes of generated crud will set here: Don't remove this line */
And the follwing comment line in the resources/views/layouts/sidebar.blade.php file:
{{-- The sidebar of generated crud will set here: Don't remove this line --}}
Usage
For example if you want to generate a new CRUD named category. make sure it's arabic words was defined in arabicWords of config file and then use the following artisan command:
php artisan make:crud category
Use translatable option if the CRUD is translatable:
php artisan make:crud category --translatable
Use has-media option if the CRUD has media:
php artisan make:crud category --has-media
Also you can use both options together to generate translatable and has media CRUD.
php artisan make:crud category --translatable --has-media
统计信息
- 总下载量: 1.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-10