morilog/acl

Access control list management for Laravel Framework
30 3
Install
composer require morilog/acl
License:GPL
Last Updated:Jan 31, 2016
Links: GitHub  ·  Packagist
Maintainer: morilog

Laravel ACL

User-Role-Permission ACL system for Laravel >= 5.1

Installation

Getting Package

Add following line to your composer.json' file at require section:

"require": {
    "morilog/acl": "dev-master"
}

And run composer update

Configs

Publish configs with this command and set admin_user_id:

php artisan vendor:publish --provider="Morilog\Acl\AclServiceProvider" --tag="config"

in app.php:

services:

Morilog\Acl\AclServiceProvider::class

alias:

'Acl' => 'Morilog\Acl\Facades\Acl'
Middleware

Open kernel.php file in app/Http' directory and add bellow line to $routeMiddleware` array:

   'acl' => Morilog\Acl\Middlewares\AclCheck::class
Migrations
php artisan vendor:publish --provider="Morilog\Acl\AclServiceProvider" --tag="migration"
Commands
php artisan morilog:acl:add-roles
php artisan morilog:acl:admin-roles
php artisan morilog:acl:add-permissions
php artisan morilog:acl:clear-permissions

Related Packages

diviky/bright

Framework extension

28,398 1
mark-villudo/laravel-user-management

Permission handling for Laravel 5.1 and up

2,006 2
geeky/laravel-permission

This is a fork of Spatia permission handling for Laravel 5.4 and up

1,273 0
stonecoldtea/laravel-permission

Permission handling for Laravel 5.4 and up

14 0
spatieupdated/laravel-permission-updated

Permission handling for Laravel 5.4 and up

14 0