Download the PHP package capstonelogic/laravel-auth without Composer
On this page you can find all versions of the php package capstonelogic/laravel-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download capstonelogic/laravel-auth
More information about capstonelogic/laravel-auth
Files in capstonelogic/laravel-auth
Package laravel-auth
Short Description Light-weight role-based permissions for Laravel 5 built in Auth system.
License MIT
Informations about the package laravel-auth
CapstoneLogic/Laravel-ACL
Laravel ACL adds role based permissions to built in Auth System of Laravel 6.0+. ACL middleware protects routes and even crud controller methods.
Table of Contents
- Requirements
- Getting Started
- Documentation
- Roadmap
- Change Logs
- Contribution Guidelines
Requirements
- Version 2.x of this package requires PHP 7.2+ and Laravel 6.0+
- Version 1.x requires PHP 5.6+ and Laravel 5.0+
Getting Started
Install the package using composer
If you need to support Laravel 5.x, make sure to install version 1.x
-
If you are using Laravel before version 5.4, manually register the service provider in your config/app.php file
- Publish the package configuartion files and add your own models to the list of ACL models"
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. - Run the migrations to generate your roles and permissions tables
Please note that if you are upgrading to 6.0 from a previous version, the default column type for the id on the users table has changed. On certain databases foreign keys can only be defined with matching column types. As such, you will need to change the id column on your users table to bigInteger in to user this package.
Documentation
Follow along the Wiki to find out more.
Roadmap
Here's the TODO list for the next release.
- [ ] Refactoring the source code.
- [ ] Correct all issues.
- [ ] Adding cache to final user permissions.
Change Logs
September 14 2019
- [x] Updated the readme to reflect new major release
September 13, 2019
- [x] Added support for Laravel 6
*September 22, 2016**
- [x] Added unit tests
*September 20, 2016**
- [x] Added support for Laravel 5.3
September 19, 2016
- [x] Added cache support to Roles and Permissions.
June 14, 2015
- [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.