marabesi / easy-crud
此包的最新版本(1.1.0)没有可用的许可信息。
(Laravel 5+) 从您的模型或数据库生成 CRUD 的简单有效方法 编辑
1.1.0
2017-09-22 14:03 UTC
Requires (Dev)
- orchestra/testbench: 3.2.*
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2024-09-24 04:35:26 UTC
README
(Laravel 5+) 从您的模型或数据库生成 CRUD 的简单有效方法
版本兼容性
您能做什么?
- 从 Laravel 模型生成 CRUD
- 从数据库表生成 CRUD(尚未准备就绪)
由 Gentelella 主题提供支持
功能
- 友好的管理员来管理您的数据(CRUD)
- 防止与定义的路由冲突
- 美丽的管理员模板
安装
composer require marabesi/easy-crud
更新服务提供者列表
'providers' => [ EasyCrud\Providers\EasyCrud::class, ]
将供应商资源发布到您当前项目
artisan vendor:publish
现在,您应该在配置文件夹中有一个名为 easy-crud.php
的文件,打开它并根据需要进行编辑。
<?php return [ /** * All models that should have a CRUD. The key of the element will * appear as the menu label in the admin area */ 'models' => [ 'Users' => \App\User::class ], /** * URL that should be used to access the gentella admin * where you can manage all models that have CRUD */ 'url_base' => '/admin', /** * You might want to have some validation before accessing * the gentela admin, to achieve that, just inform the middleware * class name in the array. It will go through each middleware declared * below. */ 'middlewares' => [ ] ];
在 models
数组中添加您希望在管理员中看到的所有模型,键应该是标签名称。它将显示在管理员区域中。