neposoft/field-acl
Laravel ACL on field level
How to use the package:
-
Add a dependency to your composer composer require neposoft/field-acl
-
Add the service provider in config/app.php
Neposoft\FieldAcl\FieldAclServiceProvider::class -
php artisan vendor:publishto publish config files, views and migrations -
Add class that you want to manage in config/fieldAcl.php , inside class
'classes' => [ \App\User::class ]
- also change the roles and other parameters according to your needs.
- In your model, use FieldAcl trait:
use Neposoft\FieldAcl\FieldAcl;
- Open the browser at `/permissions` and you are ready to manage the permissions for the groups that you defined in config.

If any trouble, don't hesistate to open issues :)
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
634,760,849
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
408,553,772
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
387,976,821
4,658