marcoazn89/route-protection
Composer 安装命令:
composer require marcoazn89/route-protection
包简介
README 文档
README
Module to protect your routes based on roles + access type
OAuth2 configuration
// Example. I bet you might want to request to make them work also based on GET, POST, etc, but for now get creative with the roles. $config = [ '/api/account[/]' => [ 'admin' => ['web','curl'] ], '/api/account/{id}[/]' => [ 'admin' => ['web','curl'], 'partner' => ['web'], 'user' => ['web'] ] ]
统计信息
- 总下载量: 7.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-03-24