Download the PHP package yard8/laravel-permissions without Composer
On this page you can find all versions of the php package yard8/laravel-permissions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yard8/laravel-permissions
More information about yard8/laravel-permissions
Files in yard8/laravel-permissions
Package laravel-permissions
Short Description Creates user roles and the various permissions your application would use for authorisation.
License MIT
Homepage https://github.com/Yard8/laravel-permissions
Informations about the package laravel-permissions
Laravel Permissions
The purpose of this package is to create both roles and permissions which could be assigned to a user and used during authorisation or policy checks.
Installation
You can install the package via composer:
Publish the config and migration files:
Add on a role_id
column which is an unsigned bigInteger
to the users table which will be related to both the roles and permissions:
Setup the config permissions.php to include the roles and permissions you want in your application.
Insert the roles and permissions into your database:
Add the HasPermissions trait to the model you want to have the roles and permissions:
Usage
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.