2017 © Pedro Peláez
 

library laravel-acl

Add structured ACL to Laravel >= 5.1.11

image

sid/laravel-acl

Add structured ACL to Laravel >= 5.1.11

  • Friday, September 11, 2015
  • by sidis405
  • Repository
  • 4 Watchers
  • 8 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Code Coverage Build Status, (*1)

This laravel package adds structured ACL (roles and permissions) to Laravel >= 5.1.11, (*2)

  • Very alpha stages. Not unstable but i need to write tests for it.
  • If you think it's a good starting point for you, take it.

Installation

Add to composer.json, (*3)

"sid/laravel-acl":"dev-master" 

Register the service provider by adding in the provider section in config/app.php, (*4)

'providers' => [
    ...
    Sid\Acl\Providers\AclServiceProvider::class
    ...

Just in case, (*5)

composer dump-autoload

Publish the migration and the config file, (*6)

php artisan vendor:publish

Migrate the ACL tables, (*7)

php artisan migrate

Enable it. Modify config/acl.php, (*8)

return [

    'enabled' => false

];

In you User model, import the trait, (*9)

use Sid\Acl\Traits\HasRoles; to App\User

... and use it. Like so., (*10)

...
use Authenticatable, Authorizable, CanResetPassword, HasRoles;
...

Credits

Deliberately inspired by Jeffrey Way's lesson at Laracasts., (*11)

Todo

  • Test. Tests. Tests.
  • Expanded documentation on adding roles and permissions
  • Management controllers and views

Contributing

Contributions are welcome and will be fully credited., (*12)

The Versions

11/09 2015

dev-master

9999999-dev https://github.com/sidis405/laravel-acl

Add structured ACL to Laravel >= 5.1.11

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl laravel-acl sid