Package Data | |
---|---|
Maintainer Username: | crynobone |
Maintainer Contact: | crynobone@gmail.com (Mior Muhammad Zaki) |
Package Create Date: | 2013-04-11 |
Package Last Update: | 2021-04-18 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:26:51 |
Package Statistics | |
---|---|
Total Downloads: | 107,702 |
Monthly Downloads: | 73 |
Daily Downloads: | 0 |
Total Stars: | 23 |
Total Watchers: | 4 |
Total Forks: | 5 |
Total Open Issues: | 0 |
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).
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@dev
To install through composer, simply put the following in your composer.json
file:
{
"require": {
"orchestra/auth": "^3.5"
}
}
And then run composer install
from the terminal.
Above installation can also be simplify by using the following command:
composer require "orchestra/auth=^3.5"
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,
],
CommandServiceProvider
are optional, useful for interaction using the Artisan command line tool.
To make development easier, you could add Orchestra\Support\Facades\ACL
alias for easier reference:
'aliases' => [
'ACL' => Orchestra\Support\Facades\ACL::class,
],