Download the PHP package milebits/authorizer without Composer
On this page you can find all versions of the php package milebits/authorizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download milebits/authorizer
More information about milebits/authorizer
Files in milebits/authorizer
Package authorizer
Short Description Permission handling for Laravel 6.0 and higher
License GPL-3.0-or-later
Informations about the package authorizer
Milebits Authorizer - For Laravel +6, +7, +8
Milebits Authorizer gives you access to simplified role/permissions management system for your laravel application in one simple installation.
How to Install
Install the package
Add it to the Model
Installing the permissions
Once you are satisfied with the actual models that you have in your application, you can run the command in order to generate permissions for every Model that exists in your applicationModels folder.
CAUTION: this command should be used only ONCE, and it is highly advised to run it after a fresh migration not after
And that's it, you are done! you can now use this package
How to use it
Relations
User roles
User permissions
Getting permissions
getByClassAction
Methods
Adding a role to a user
In this case $role
should be the ID of the desired role to add
Removing a role from a user
In this case $role
should be the ID of the desired role to add
Checking if a user has a certain role
Checking if a user has a certain permission
Using Middlewares
HasPermission Middleware
HasRole Middleware
Contributions
If in any case while using this package, and you which to request a new functionality to it, please contact us at [email protected] and mention the package you are willing to contribute or suggest a new functionality.
Vulnerabilities
If in any case while using this package, you encounter security issues or security vulnerabilities, please do report them as soon as possible by issuing an issue here in Github or by sending an email to [email protected] with the mention Vulnerability Report milebits/authorizer as your subject.
All versions of authorizer with dependencies
laravel/framework Version ^6|^7|^8|^9
milebits/eloquent-filters Version >=3