library field-acl
A laravel package to support acl on fields of your models
neposoft/field-acl
A laravel package to support acl on fields of your models
- Thursday, September 8, 2016
- by neposoft
- Repository
- 3 Watchers
- 4 Stars
- 87 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Laravel ACL on field level
How to use the package:
-
Add a dependency to your composer
composer require neposoft/field-acl
, (*1)
-
Add the service provider in config/app.php
Neposoft\FieldAcl\FieldAclServiceProvider::class
, (*2)
-
php artisan vendor:publish
to publish config files, views and migrations, (*3)
-
Add class that you want to manage in config/fieldAcl.php , inside class
php
'classes' => [
\App\User::class
]
, (*4)
-
also change the roles and other parameters according to your needs., (*5)
-
In your model, use FieldAcl trait:, (*6)
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., (*7)
, (*8)
If any trouble, don't hesistate to open issues :), (*9)
dev-master
9999999-dev
A laravel package to support acl on fields of your models
Sources
Download
MIT
The Requires
by
Vijay Sapkota
1.0.1
1.0.1.0
A laravel package to support acl on fields of your models
Sources
Download
MIT
The Requires
by
Vijay Sapkota
1.0.0
1.0.0.0
A laravel package to support acl on fields of your models
Sources
Download
MIT
The Requires
by
Vijay Sapkota