kazi-shahin / acl
Your can get ACL based role permissions
v1.1.1
2021-11-15 09:58 UTC
README
Installation:
composer require kazi-shahin/acl
php artisan migrate
- Add
'permission' => \KaziShahin\Acl\Http\Middleware\PermissionMiddleware::class,
inside$routeMiddleware
ofKernel.php
- use
KaziShahin\Acl\Traits\HasPermissionsTrait
in user model
Usage
- use
permission
middleware in your route and add route names and permission accordingly.