orchestra/auth is a Laravel package for auth component for orchestra platform.
It currently has 22 GitHub stars and 108.680 downloads on Packagist (latest version v5.0.1).
Install it with composer require orchestra/auth.
Discover more Laravel packages by orchestra
or browse all Laravel packages to compare alternatives.
Last updated
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 6.x | 4.x 7.x | 5.x
To install through composer, run the following command from terminal:
composer require "orchestra/auth"
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.
To make development easier, you could add Orchestra\Support\Facades\ACL alias for easier reference:
'aliases' => [
'ACL' => Orchestra\Support\Facades\ACL::class,
],