Skip to content

stevebauman/auth

 
 

Repository files navigation

Auth Component for Orchestra Platform

Join the chat at https://gitter.im/orchestral/platform

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

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
5.3.x 3.3.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

Packages

No packages published

Languages

  • PHP 99.1%
  • Shell 0.9%