sinarajabpour1998/acl-manager

This package provides access control list and user manager in laravel apps.
29
Install
composer require sinarajabpour1998/acl-manager
Latest Version:v1.3.6
PHP:7.1.*|7.2.*|7.3.*|7.4.*|8.*
License:MIT
Last Updated:Nov 16, 2021
Links: GitHub  ·  Packagist
Maintainer: sinarajabpour1998

ACL Manager

This package provides access control list and user manager for laravel apps.

Installation

Using Composer :

composer require sinarajabpour1998/acl-manager

packagist : acl-manager

Usage

  • Change the user modal namespace to laratrust config (located in /config/laratrust.php) in user_models section :
'user_models' => [
    'users' => 'App\Models\User',
],
  • Publish blade files
php artisan vendor:publish --tag=acl-manager

** Please note if you already published the vendor, for updates you can run the following command :

php artisan vendor:publish --tag=acl-manager --force
  • Add the following tag in your sidebar layout :
<x-acl-menu></x-acl-menu>

or shorten tag :

<x-acl-menu />

Config options

You can set custom permissions for each section of this package. make sure that you already specified permissions in a seeder.

ChangeLog

See ChangeLog