Download the PHP package lazywe/lazy-admin without Composer
On this page you can find all versions of the php package lazywe/lazy-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lazywe/lazy-admin
More information about lazywe/lazy-admin
Files in lazywe/lazy-admin
Download lazywe/lazy-admin
More information about lazywe/lazy-admin
Files in lazywe/lazy-admin
Please rate this library. Is it a good library?
Informations about the package lazy-admin
lazy-admin
- 基于laravel的rbac后台系统
Requirement
- php >= 7.0
- Composer
- laravel >= 5.8
- spatie/laravel-permission
demo
Installation
First
Second
- 修改config/auth.php
`
- 注意
若mysql版本小于5.7.7 需要修改AppServiceProvider
新增如下
use Illuminate\Support\ServiceProvider;
boot方法新增如下
Schema::defaultStringLength(191);
注意修改数据库配置
Third
-
生成配置文件命令如下
- 若自定义connection 可修改config/lazy-admin.conf 文件中的 connection
- 生成数据库命令如下
Usage
- 打开地址 http://localhost/admin
- 用户名 [email protected]
- 密码 123456
- 注意:
- 后台入口前缀可以更改
lazy-admin.prefix
- 所有后台路由需要使用
route()
方法,否则后台路由前缀
可能无法动态更换
新功能的路由规则
- 权限验证中间件 lazy-admin
-
注意:所有需要权限验证的路由需要使用
lazy-admin
中间件,否则... - 参考:App\Providers\RouteServiceProvider::class 文件新增如下
路由权限遵循 larave-premission
模版权限
-
权限认证
-
用户组权限认证
-
用户组权限认证 满足任一角色通过
-
用户组权限认证 满足所有角色通过
-
用户组权限认证 不满足当前角色通过
- 文档修改自laravel-permission 由于更改了后台guard name 因此使用 laravel-permission 的模版权限时需要指定
guard name
否则不生效
模版 layout
-
后台公用layout
- 模版其他详细功能建议看resources
All versions of lazy-admin with dependencies
PHP Build Version
Package Version
Requires
spatie/laravel-permission Version
^3.3.0
The package lazywe/lazy-admin contains the following files
Loading the files please wait ....