Download the PHP package techlify-inc/laravel-rbac without Composer
On this page you can find all versions of the php package techlify-inc/laravel-rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download techlify-inc/laravel-rbac
More information about techlify-inc/laravel-rbac
Files in techlify-inc/laravel-rbac
Package laravel-rbac
Short Description Role Based Access Control for Laravel
License MIT
Informations about the package laravel-rbac
LaravelRbac
Just another Role Based Access Control package for Laravel. This one focuses on keeping things simple & sweet.
Installation
Install this package with composer using the following command:
Run migrations
Add the Rbac trait to your User
model
Usage
Roles
Creating roles
Assigning And Removing Roles
You can simple attach role to user:
And the same if you want to detach role:
Checking for roles
You can simple check if user has role:
Permissions
Creating permissions
Attaching And Detaching permissions
You can attach permission to role very simple:
And the same to detach permission:
Checking for permissions
You can simple check if user has permission:
You can also enforce permissions at route level using the middleware (v0.2 onwards):
LaravelUserManagement is now merged into this package
A simple package for Laravel that provides user management services
Installation
Install this package with composer using the following command:
Run migrations
Usage
This package provides the following API services that your frontend can use:
User Management
User Password Management
User Session Management
All versions of laravel-rbac with dependencies
doctrine/dbal Version >=2.6
laravel/framework Version >=5.6
laravel/passport Version >=6.0
laravel/tinker Version ^1.0