Download the PHP package kangaroos/laravel-acl without Composer
On this page you can find all versions of the php package kangaroos/laravel-acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-acl
Kodeine/Laravel-ACL
Laravel ACL adds role based permissions to built in Auth System of Laravel 5. ACL middleware protects routes and even crud controller methods.
Table of Contents
- Requirements
- Getting Started
- Documentation
- Roadmap
- Change Logs
- Contribution Guidelines
Requirements
- This package requires PHP 5.4+
Getting Started
-
Require the package in your
composer.json
and update your dependency withcomposer update
: -
Add the package to your application service providers in
config/app.php
. - Publish the package migrations to your application and run these with `php artisan migrate.
Use your own models. Once you publish, it publishes the configuration file where you can define your own models which should extend to Acl models.
-
Add the middleware to your
app/Http/Kernel.php
. - Add the HasRole trait to your
User
model.
Documentation
Follow along the Wiki to find out more.
Roadmap
Here's the TODO list for the next release (2.0).
- [ ] Refactoring the source code.
- [ ] Correct all issues.
- [ ] Adding cache to final user permissions.
- [ ] Adding tests.
Change Logs
June 14, 2015 (latest)
- [x] Added backward compatibility to l5.0 for lists() method.
- [x] Added Blade Template Extensions.
March 28, 2015
- [x] Added Role Scope to get all users having a specific role. e.g
User::role('admin')->get();
will list all users havingadmin
role.
March 7, 2015
- [x]
is()
andcan()
methods now support comma forAND
and pipe asOR
operator. Or pass an operator as a second param. more information - [x] You can bind multiple permissions together so they inherit ones permission. more information
Contribution Guidelines
Support follows PSR-2 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.
All versions of laravel-acl with dependencies
illuminate/support Version 4.2.x|~5.0
illuminate/database Version 4.2.x|~5.0