Your can get ACL based role permissions

v1.1.1 2021-11-15 09:58 UTC

This package is auto-updated.

Last update: 2024-11-14 17:23:55 UTC


README

Installation:

  • composer require kazi-shahin/acl
  • php artisan migrate
  • Add 'permission' => \KaziShahin\Acl\Http\Middleware\PermissionMiddleware::class, inside $routeMiddleware of Kernel.php
  • use KaziShahin\Acl\Traits\HasPermissionsTrait in user model

Usage

  • use permission middleware in your route and add route names and permission accordingly.