neposoft/field-acl

A laravel package to support acl on fields of your models
99 6
Install
composer require neposoft/field-acl
Latest Version:1.0.1
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Sep 8, 2016
Links: GitHub  ·  Packagist
Maintainer: neposoft

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 :) 

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released PHP Laravel License
1.0.1 >=5.4.0 5.0.x|5.1.x|5.2.x MIT
1.0.0 >=5.4.0 5.0.x|5.1.x|5.2.x MIT