PHPackages                             zehirpx/laroles - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. zehirpx/laroles

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

zehirpx/laroles
===============

A light permission management for Laravel.

v0.1.6(9y ago)022MITPHPPHP &gt;=5.6.4

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zehirpx/laroles)[ Packagist](https://packagist.org/packages/zehirpx/laroles)[ RSS](/packages/zehirpx-laroles/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (8)Used By (0)

la-roles
========

[](#la-roles)

A light permission management for Laravel.

Requirements
------------

[](#requirements)

- Laravel &gt;= 5.0

Installation
------------

[](#installation)

To get started, install the package via the Composer package manager:

```
composer require zehirpx/laroles

```

Next, register the service provider in the `providers` array of your `config/app.php`:

```
zehirpx\Laroles\LarolesServiceProvider::class,

```

Now, publish and migrate the migrations:

```
php artisan vendor:publish
php artisan migrate

```

After running the commands, addd the `zehirpx\Laroles\HasRoles` trait to your `App\User` model. The trait will provide a few method to your model which allow you inspect the roles and permissions of the user.

```
