Download the PHP package actengage/roles without Composer
On this page you can find all versions of the php package actengage/roles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download actengage/roles
More information about actengage/roles
Files in actengage/roles
Download actengage/roles
More information about actengage/roles
Files in actengage/roles
Vendor actengage
Package roles
Short Description A simple role management package for Laravel.
License MIT
Package roles
Short Description A simple role management package for Laravel.
License MIT
Please rate this library. Is it a good library?
Informations about the package roles
Roles
A simple package for assigning many-to-many "roles" to Eloquent models. This packages provides the migrations, a config file, a Role model, a Roleable trait, and an ability to sync the roles from a config to the database.
Installation
composer require actengage/roles
Implementation
To implement Roles, you just need to assign the Roleable
trait to the model
receiving the roles.
namespace App\User;
use Actenage\Roles\Roleable;
use Illuminate\Database\Eloquent\Model;
class User extends Model {
use Roleable;
}
Gates & Policies
Roles are meant to be used directly within Laravel Gates and Policies.
Basic Example
Parent/Child Roles
All versions of roles with dependencies
PHP Build Version
Package Version
The package actengage/roles contains the following files
Loading the files please wait ....