Auth Component for Orchestra Platform

Installs: 28 229

Dependents: 2

Stars: 15

Watchers: 3

Forks: 4

Open Issues: 1

Language: PHP

v3.1.4 2015-06-16 08:17 UTC

README

Auth Component extends the functionality of Illuminate\Auth with the extra functionality to retrieve users' role. This is important when we want to use Orchestra\Acl to manage application Access Control List (ACL).

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score

Table of Content

Version Compatibility

Laravel Auth 4.0.x 2.0.x 4.1.x 2.1.x 4.2.x 2.2.x 5.0.x 3.0.x 5.1.x 3.1.x 5.2.x 3.2.x@dev

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/auth": "~3.0"
    }
}

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/auth=~3.0"

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,

    Orchestra\Auth\CommandServiceProvider::class,
    Orchestra\Memory\CommandServiceProvider::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,

],

Resources