Skip to content
Kodeine edited this page Feb 23, 2015 · 24 revisions

Installation

Composer

Add this to your composer.json file, in the require object:

"kodeine/laravel-acl": "dev-master"

After that, run composer install to install the package.

Migration Table Schema

Configuration

Model Setup

Next, add the HasRole trait to your User model:

use Kodeine\ACL\HasRole;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract
{
    use Authenticatable, CanResetPassword, HasRole;
}