Skip to content

A laravel package to support acl on database fields of your models

Notifications You must be signed in to change notification settings

mrdezzods/fieldAcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:publish to 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.

![Screenshot](http://i.imgur.com/FUp41FM.png)

If any trouble, don't hesistate to open issues :) 

About

A laravel package to support acl on database fields of your models

Resources

Stars

Watchers

Forks

Packages

No packages published