zeuz113/laravel-crud-generator
Composer 安装命令:
composer require zeuz113/laravel-crud-generator
包简介
php artisan command to generate fully working crud with grid paginated server side only by having database tables - forked from kEpEx/laravel-crud-generator
README 文档
README
php artisan command to generate fully working crud with grid paginated server side only by having database tables
optimized for laravel 8
Installing
composer require zeuz113/laravel-crud-generator
In Laravel >6.* require helpers instalation
composer require laravel/helpers
Add to config/app.php the following line to the 'providers' array:
CrudGenerator\CrudGeneratorServiceProvider::class,
Custom Templates
The best power of this plugin relies on you making your own templates and generating the code the way you like
Run this command:
php artisan vendor:publish
and you will have now in resources/templates/ the files you need to modify
If you want to go back to the default, just delete them
Usage
Use the desired model name as the input
CRUD for students table
php artisan make:crud student
or the whole database
php artisan make:crud all
whole database with custom layout
php artisan make:crud all --master-layout=layouts.master
Because sometimes you need boilerplate code only for view and controller, you can use an existing model with custom controller name
php artisan make:crud student --master-layout=master --custom-controller=dashboard
For more options
php artisan help make:crud
Let me know if you have any questions or if you find this library useful at twitter @kEpEx
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-17
