Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 2.56 KB

README.md

File metadata and controls

84 lines (57 loc) · 2.56 KB

Auth Component for Orchestra Platform

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

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',
	'Orchestra\Authorization\AuthorizationServiceProvider',
	'Orchestra\Memory\MemoryServiceProvider',

	'Orchestra\Auth\CommandServiceProvider',
	'Orchestra\Memory\CommandServiceProvider',
],

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

],

Resources