Download the PHP package ezijing-mse-hyperf/permission without Composer
On this page you can find all versions of the php package ezijing-mse-hyperf/permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ezijing-mse-hyperf/permission
More information about ezijing-mse-hyperf/permission
Files in ezijing-mse-hyperf/permission
Download ezijing-mse-hyperf/permission
More information about ezijing-mse-hyperf/permission
Files in ezijing-mse-hyperf/permission
Vendor ezijing-mse-hyperf
Package permission
Short Description hyperf权限管理组件
License MIT
Homepage https://github.com/wojiushidashen/ezijing-mse-hyperf-permission.git
Package permission
Short Description hyperf权限管理组件
License MIT
Homepage https://github.com/wojiushidashen/ezijing-mse-hyperf-permission.git
Please rate this library. Is it a good library?
Informations about the package permission
Hyperf权限管理组件
推荐使用Hyperf Casbin:https://github.com/Ezijing-deng/hyperf-casbin
转换至Casbin示例代码,按自己实际情况修改:
适配Hyperf的spatie/laravel-permission
使用示例代码:https://github.com/Ezijing-deng/la-user-center
与spatie/laravel-permission的区别
- 无中间件,Hyperf目前还没有Auth组件,请自行创建中间件
- 命令行只保留清除缓存
-
permissions 增加 parent_id,display_name,url,sort字段,用于生成树形菜单,但不是必填。
- roles增加description字段,非必填
安装
发布配置
修改配置文件config/autoload/permission.php
数据库迁移
将Ezijing\Permission\Traits\HasRoles添加到你的用户Model
使用
CHANGELOG
CHANGELOG.md
License
The MIT License (MIT). Please see License File for more information.
All versions of permission with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
ext-swoole Version >=4.5
hyperf/database Version ~2.1
hyperf/db-connection Version ~2.1
hyperf/cache Version ~2.1
hyperf/utils Version ~2.1
hyperf/validation Version ~2.1
ext-swoole Version >=4.5
hyperf/database Version ~2.1
hyperf/db-connection Version ~2.1
hyperf/cache Version ~2.1
hyperf/utils Version ~2.1
hyperf/validation Version ~2.1
The package ezijing-mse-hyperf/permission contains the following files
Loading the files please wait ....