laraturka/acl2
Composer 安装命令:
composer require laraturka/acl2
包简介
Access Control List for Laravel
README 文档
README
Role Based Access Control for Laravel
Copy migrate and seed files and migrate with seed.
Add route middleware for acl app/Http/Kernel.php 'acl' => \Laraturka\Acl\AclMiddleware::class,
Add AclPolicy referance to Providers. app/Http/Providers/AuthServiceProvider.php
User::class => AclPolicy::class,
Create route group with middleware
Route::group(['prefix'=>'admin', 'middleware' => ['auth','acl','nocache']], function() {
//what ever you want to route
});
统计信息
- 总下载量: 65
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-24