laramab/crudgenerator
Composer 安装命令:
composer require laramab/crudgenerator
包简介
Basic laravel crud generator.
README 文档
README
The basic laravel crud generator.
Installation
composer require laramab/crudgenerator
Add crud generator service provider
Laramab\Crudgenerator\CrudGeneratorServiceProvider::class,
Published configuration
php artisan vendor:publish --provider="Laramab\Crudgenerator\CrudGeneratorServiceProvider"
it will generate crud-generator.php configuration file which is allow you can custom your own route, model, migration and controller directory
<?php return [ /* |-------------------------------------------------------------------------- | Model directory |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | */ 'path_model' => 'app/Models', /* |-------------------------------------------------------------------------- | Controller directory |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | */ 'path_controller' => 'app/Http/Controllers/Frontend', /* |-------------------------------------------------------------------------- | Route directory |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | */ 'path_route' => 'routes/Backend', /* |-------------------------------------------------------------------------- | Request directory |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | */ 'path_request' => 'app/Http/Requests', ];
Example command
php artisan crud:generator Gender "ភេទ" "gender" "name_km:string, name_en:string"
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-23