dnetix / rbac
Role Based Access Control Module
0.1.0
2016-05-01 00:42 UTC
Requires
- php: >=5.6
- dnetix/utils: dev-master
Requires (Dev)
- fzaninotto/faker: ^1.5
- illuminate/contracts: ^5.2
- illuminate/database: ^5.2
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ^5.3
This package is not auto-updated.
Last update: 2024-11-07 01:54:13 UTC
README
Installation
With composer
composer require dnetix/rbac
Add the service provided to the app.php config file
\Dnetix\Rbac\RbacServiceProvider::class,
Publish the configurations and migrations for this package
php artisan vendor:publish
Modify the rbac.php config file with your own permissions
Make sure that the Models or Classes that will be using permissions and roles implements from the interface
Illuminate\Contracts\Auth\Authenticatable;
TODO
- Revoke permissions to specific authenticatables (Users)
- Cache the results provided for the repository, they change rarely