neposoft/field-acl
Composer 安装命令:
composer require neposoft/field-acl
包简介
A laravel package to support acl on fields of your models
README 文档
README
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 :)
统计信息
- 总下载量: 99
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-06