morilog / acl
Access control list management for Laravel Framework
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/morilog/acl
Requires
- illuminate/auth: 5.1.*
- illuminate/console: ^5.1
- illuminate/database: 5.1.*
- illuminate/routing: 5.1.*
- illuminate/support: 5.1.*
- morilog/value-objects: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-21 05:52:06 UTC
README
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