orchestra/auth
最新稳定版本:v5.0.1
Composer 安装命令:
composer require orchestra/auth
包简介
Auth Component for Orchestra Platform
README 文档
README
Auth Component extends the functionality of Illuminate\Auth with the extra functionality to retrieve users' role. This is important when we want to manage application Access Control List (ACL).
Version Compatibility
| Laravel | Auth |
|---|---|
| 5.5.x | 3.5.x |
| 5.6.x | 3.6.x |
| 5.7.x | 3.7.x |
| 5.8.x | 3.8.x |
| 6.x | 4.x |
| 7.x | 5.x |
| 8.x | 6.x |
Installation
To install through composer, run the following command from terminal:
composer require "orchestra/auth"
Configuration
Next replace Illuminate\Auth\AuthServiceProvider with the following service provider in config/app.php.
'providers' => [ // ... Orchestra\Auth\AuthServiceProvider::class, Orchestra\Authorization\AuthorizationServiceProvider::class, Orchestra\Memory\MemoryServiceProvider::class, ],
CommandServiceProviderare optional, useful for interaction using the Artisan command line tool.
Aliases
To make development easier, you could add Orchestra\Support\Facades\ACL alias for easier reference:
'aliases' => [ 'ACL' => Orchestra\Support\Facades\ACL::class, ],
统计信息
- 总下载量: 108.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-11