sinarajabpour1998 / acl-manager
This package provides access control list and user manager in laravel apps.
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Type:laravel-package
Requires
- php: 7.1.*|7.2.*|7.3.*|7.4.*|8.*
- laravel/framework: 7.*|8.*
- santigarcor/laratrust: 6.*
- sinarajabpour1998/alpha-helper: 1.*
- sinarajabpour1998/log-manager: 1.*
README
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
) inuser_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.