dev-master
9999999-dev https://github.com/sidis405/laravel-aclAdd structured ACL to Laravel >= 5.1.11
MIT
The Requires
- php >=5.5.0
- illuminate/support ^5.1
The Development Requires
laravel acl laravel-acl sid
Wallogit.com
2017 © Pedro Peláez
Add structured ACL to Laravel >= 5.1.11
This laravel package adds structured ACL (roles and permissions) to Laravel >= 5.1.11, (*2)
Add to composer.json, (*3)
"sid/laravel-acl":"dev-master"
Register the service provider by adding in the provider section in config/app.php, (*4)
'providers' => [
...
Sid\Acl\Providers\AclServiceProvider::class
...
Just in case, (*5)
composer dump-autoload
Publish the migration and the config file, (*6)
php artisan vendor:publish
Migrate the ACL tables, (*7)
php artisan migrate
Enable it. Modify config/acl.php, (*8)
return [
'enabled' => false
];
In you User model, import the trait, (*9)
use Sid\Acl\Traits\HasRoles; to App\User
... and use it. Like so., (*10)
... use Authenticatable, Authorizable, CanResetPassword, HasRoles; ...
Deliberately inspired by Jeffrey Way's lesson at Laracasts., (*11)
Contributions are welcome and will be fully credited., (*12)
Add structured ACL to Laravel >= 5.1.11
MIT
laravel acl laravel-acl sid