Download the PHP package jobsys/permission without Composer
On this page you can find all versions of the php package jobsys/permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jobsys/permission
More information about jobsys/permission
Files in jobsys/permission
Download jobsys/permission
More information about jobsys/permission
Files in jobsys/permission
Vendor jobsys
Package permission
Short Description Lite permission integrated for common project.
License
Package permission
Short Description Lite permission integrated for common project.
License
Please rate this library. Is it a good library?
Informations about the package permission
Laravel permission
该库主要功能为拓展 User 的权限控制,包括用户组权限控制以及功能权限控制
使用方法
-
在
composer.json
中添加仓库地址 -
在项目中加入包
-
执行初始化
- 生成数据库表
permissions
中的key
形式如api.manager.user
,api.manager.user.edit
,api.manager.user.*
, 根据项目具体情况生成插入即可
-
为 User 添加权限相关方法
- 配置项
config/permission.php
配置项 | 类型 | 说明 |
---|---|---|
enable_wildcard_permission | Boolean | 是否开启权限通配检测 |
preset_super_groups | Array | 预设的超级用户权限组,值为 Role 的 key |
All versions of permission with dependencies
PHP Build Version
Package Version
The package jobsys/permission contains the following files
Loading the files please wait ....