csgt/cancerbero
最新稳定版本:v8.0.2
Composer 安装命令:
composer require csgt/cancerbero
包简介
Cancerbero
README 文档
README
Cancerbero is a Laravel package to manage access control based on routes and a permissions database table.
| Package Version | Laravel version | Field language | Tree structure | Model Path |
|---|---|---|---|---|
| 4.x | 4 | spanish | ids | Models/Auth |
| 5.x | >5 | spanish | ids | Models/Auth |
| 5.7 | >5 | english | ids | Models/Auth |
| 6.x | >6 | english | ids | Models/Auth |
| 7.x | >6 | english | names | Models/Auth |
| 8.x | >6 | english | names | Models |
Upgrade guides
6.x -> 7.x
- Update
composer.jsonto the new versions
"csgt/cancerbero": "^7.0",
"csgt/menu": "^7.0",
"csgt/ui": "^3.0",
"csgt/utils": "^8.0",
- Publish and run migrations
php artisan vendor:publish --tag=migrations
php artisan migrate
-
Modify
PermissionSeeder,ModulePermissionsSeeder,MenuSeeder,GodSeeder,InitialSeederseeders for new schema. You may copy them from\packages\ui\src\Auth\stubs\seeders\ -
Update
\database\seeds\CsgtModule.phpfor new schema. You may copy it from\packages\cancerbero\src\ -
Remove
menumiddleware from routes (if they exist)
统计信息
- 总下载量: 5.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-08-21