All Projects → saqueib → Roles Permissions Laravel

saqueib / Roles Permissions Laravel

Licence: mit
Roles and Permissions implementation on Laravel 5.4

Projects that are alternatives of or similar to Roles Permissions Laravel

Laravel Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Stars: ✭ 136 (+12.4%)
Mutual labels:  laravel, authorization, acl
Brandenburg
Laravel Authentication Package
Stars: ✭ 79 (-34.71%)
Mutual labels:  laravel, authorization, acl
Bouncer
Eloquent roles and abilities.
Stars: ✭ 2,763 (+2183.47%)
Mutual labels:  laravel, authorization, acl
Laratrust
Handle roles and permissions in your Laravel application
Stars: ✭ 1,799 (+1386.78%)
Mutual labels:  laravel, authorization, acl
Laravel Acl
This package helps you to associate users with permissions and permission groups with laravel framework
Stars: ✭ 404 (+233.88%)
Mutual labels:  laravel, authorization, acl
Openstack Policy Editor
A Casbin Policy Editor for OpenStack
Stars: ✭ 28 (-76.86%)
Mutual labels:  authorization, acl
Laravel5.7 Vue Cli3 Boilerplate
Boilerplate / Starter kit. Laravel 5.7, Vue CLI 3 — Authentication with Email Verification. REST API.
Stars: ✭ 52 (-57.02%)
Mutual labels:  laravel, authorization
Laravel Vue Starter
Well Documented Laravel Starter App From Development to Production. For Full Blown RESTFUL API and SPA with Beautiful UI Using Buefy / ElementUi For Reusable Vue Components
Stars: ✭ 76 (-37.19%)
Mutual labels:  laravel, acl
Jcasbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Java
Stars: ✭ 1,335 (+1003.31%)
Mutual labels:  authorization, acl
Casbin.net
An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)
Stars: ✭ 535 (+342.15%)
Mutual labels:  authorization, acl
Casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Golang
Stars: ✭ 10,872 (+8885.12%)
Mutual labels:  authorization, acl
Sentinel
A framework agnostic authentication & authorization system.
Stars: ✭ 1,354 (+1019.01%)
Mutual labels:  laravel, authorization
Php Casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in PHP .
Stars: ✭ 865 (+614.88%)
Mutual labels:  authorization, acl
Laravel Heyman
Declarative style of authorization and validation in laravel.
Stars: ✭ 677 (+459.5%)
Mutual labels:  laravel, authorization
Pycasbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Python
Stars: ✭ 625 (+416.53%)
Mutual labels:  authorization, acl
Vakt
Attribute-based access control (ABAC) SDK for Python
Stars: ✭ 92 (-23.97%)
Mutual labels:  authorization, acl
Imperium
Role-based Authorizations library for Node.js
Stars: ✭ 109 (-9.92%)
Mutual labels:  authorization, acl
Simpleacl
Simple ACL for PHP
Stars: ✭ 105 (-13.22%)
Mutual labels:  authorization, acl
Casbin Cpp
An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++
Stars: ✭ 113 (-6.61%)
Mutual labels:  authorization, acl
Defender
Roles & Permissions for Laravel 8 / 7 / 6 / 5
Stars: ✭ 403 (+233.06%)
Mutual labels:  laravel, acl

Roles Permissions Laravel (RPL)

A stater kit with Roles and Permissions implementation on Laravel 5.4

Install

  1. To use it just clone the repo and composer install.
  2. Set the database connection
  3. To test the app run php artisan db:seed, our interactive seeder will take care of everything.

Add a new Resource

  1. Create desired resource by running
## Create Comment model with migration and resource controller
php artisan make:model Comment -mcr
  1. Register route for it.
Route::group( ['middleware' => ['auth']], function() {
    ...
    Route::resource('comments', 'CommentController');
});
  1. Now implement your controllers methods and use the Authorizable trait
use App\Authorizable;

class CommentController extends Controller
{
    use Authorizable;
    ...
  1. Now add the permissions for this new Comment model.
php artisan auth:permission Comment

That's it, you have added new resource controller which have full access control by laravel permissions.

auth:permission command

This command can be user to add or remove permission for a given model

## add permission
php artisan auth:permission Comment

## remove permissions
php artisan auth:permission Comment --remove

Author

Created by QCode.in

License

MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].