dev-master
9999999-dev https://cakephpbrasil.com.brACL plugin for CakePHP 3.x
MIT
The Requires
- php >=5.5.9
- cakephp/cakephp >=3.3.2 <4.0.0
The Development Requires
plugin cakephp templates
ACL plugin for CakePHP 3.x
You can install this plugin into your CakePHP application using composer., (*1)
The recommended way to install composer packages is:, (*2)
composer require boleiros/guardian
// config/bootstrap.php Plugin::load('Guardian', ['bootstrap' => true, 'routes' => true]);
Or, in your terminal:, (*3)
bin/cake plugin load -b -r Gardian
bin/cake migrations migrate --plugin Guardian
//User.php <?php namespace App\Model\Entity; use Cake\ORM\Entity; use Guardian\Model\Traits\Guardian; class User extends Entity { use Guardian; ....
$user->hasPermission('users.index')
ACL plugin for CakePHP 3.x
MIT
plugin cakephp templates