Download the PHP package zainburfat/rbac without Composer
On this page you can find all versions of the php package zainburfat/rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zainburfat/rbac
More information about zainburfat/rbac
Files in zainburfat/rbac
Download zainburfat/rbac
More information about zainburfat/rbac
Files in zainburfat/rbac
Vendor zainburfat
Package rbac
Short Description This package allows you to manage user permissions and roles in a database and authentication and authorization
License MIT
Package rbac
Short Description This package allows you to manage user permissions and roles in a database and authentication and authorization
License MIT
Please rate this library. Is it a good library?
Informations about the package rbac
Laravel - Role Based Access Control
Custom Route Wise Access Control
This package allows you to manage user permissions and roles in a database and Authentication and Authorization
- Custom RBAC user based roles and permissions package
- Custom RBAC provides flexibility to use Laravel/Passport in a manner of minutes.
Prerequisites
Commands
Run migrations:
Install Passport:
Use trait in the "User" model:
To exclude some methods/class from creating permissions of them just add "@exclude-permission" in the docs block of class/method you want to exclude.
Permissions are created dynamically through command according to the controllers having methods:
Define an api authentication guard and set the driver option to passport in config/auth.php:
Publish config file
Set token expirations inside config\customrbac.php:
Use PermissionsApi middleware to authorize user to specific Api route and for web routes use PermissionsWeb middleware
app/http/kernel.php under protected $routeMiddleware:
Login and register using package's route
For Login use paramenters ('email', 'passport')
For Register use paramenters ('name', 'email', 'passport')
All versions of rbac with dependencies
PHP Build Version
Package Version
Requires
laravel/passport Version
^10.4
The package zainburfat/rbac contains the following files
Loading the files please wait ....