Download the PHP package yilu-tech/permission without Composer
On this page you can find all versions of the php package yilu-tech/permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yilu-tech/permission
More information about yilu-tech/permission
Files in yilu-tech/permission
Download yilu-tech/permission
More information about yilu-tech/permission
Files in yilu-tech/permission
Vendor yilu-tech
Package permission
Short Description Laravel Permission.
License MIT
Package permission
Short Description Laravel Permission.
License MIT
Keywords laravelpermission
Please rate this library. Is it a good library?
Informations about the package permission
权限包说明
artisan 命令
-
vendor:publish --tag=permission-migrations --force : 生成数据库表文件
-
vendor:publish --tag=permission-config --force : 生成配置文件
-
make:permission : 用于生成权限文件, 默认文件内容为
json
格式- --name : 当
endpoints
有多个时, 用于指定endopint
名 - --scopes : 用于指定权限组, 默认对
endpoints
中定义的scopes
进行过滤筛选 - --yml : 生成文件内容为
yaml
格式 - --empty : 生成空文件, 默认写入差异路由权限
- --db : 从数据据库比对差异,默认从文件比对差异
- --name : 当
-
permission:migrate : 写入权限操
- --test : 测试migration文件生成差异信息, 逆向读取 N 个测试文件 [default: "N"]
- --db : 从数据库比对进行测试
-
permission:rollback : 回滚权限操作
- --steps : 回滚次数 [default: "1]
- permission:merge : 将本地多个权限文件合并成单个文件 (当数据库表
permission_migrations
为空时, 可从permissions
表中读取当前权限,并生成当前数据库中对应权限文件)- --yaml : 生成yaml格式文件,需要php yaml扩展支持
配置文件
- server : 当前服务名
-
endopoints : 权限提交节点
例1: member-service 作为用户端, staff-service 作为服务端
例2: member-service 作为用户端, staff-service 同时作为用户端和服务端, management 用作服务端
权限文件
-
json 格式说明
- yaml 格式说明
All versions of permission with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
ext-json Version *
guzzlehttp/guzzle Version ^6.0
laravel/framework Version ^5.6.0
ext-json Version *
guzzlehttp/guzzle Version ^6.0
laravel/framework Version ^5.6.0
The package yilu-tech/permission contains the following files
Loading the files please wait ....