Auth Component for Orchestra Platform


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).

tests Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

Version Compatibility

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,
],

CommandServiceProvider are 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,

],