PHPackages                             ncaroyannis/httpozroles - 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. ncaroyannis/httpozroles

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

ncaroyannis/httpozroles
=======================

Powerful package for handling roles and permissions in Laravel

09PHP

Since Jan 24Pushed 3mo agoCompare

[ Source](https://github.com/ncaroyannis/httpozroles)[ Packagist](https://packagist.org/packages/ncaroyannis/httpozroles)[ RSS](/packages/ncaroyannis-httpozroles/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Roles for Laravel
=================

[](#roles-for-laravel)

Simple package for handling roles in Laravel.

[![Build Status](https://camo.githubusercontent.com/ae9a7f8009f1a037a9b5f2aa0df99093ed7db430fc81572a5e7c1b3acc861eeb/68747470733a2f2f7472617669732d63692e6f72672f687474706f7a2f726f6c65732e737667)](https://travis-ci.org/httpoz/roles)[![Total Downloads](https://camo.githubusercontent.com/41112de6168a2fb40a7b4901215890faa44ead147e900d70048ba1c6cb9e7694/68747470733a2f2f706f7365722e707567782e6f72672f687474706f7a2f726f6c65732f642f746f74616c2e737667)](https://packagist.org/packages/httpoz/roles)[![codecov](https://camo.githubusercontent.com/1cf12d8052f43c9fc31ec6f8124cea9c66afdb450a01edab6548964a57bb2010/68747470733a2f2f636f6465636f762e696f2f67682f687474706f7a2f726f6c65732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/httpoz/roles)[![Latest Stable Version](https://camo.githubusercontent.com/b064c846ace19cdd6654c8fa76f9efd21e6235cf239be7346018a76778de3fb3/68747470733a2f2f706f7365722e707567782e6f72672f687474706f7a2f726f6c65732f762f737461626c652e737667)](https://packagist.org/packages/httpoz/roles)

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

[](#installation)

This package is very easy to set up. There are only a couple of steps.

### Previous Versions

[](#previous-versions)

For Previous versions please see the [releases page](https://github.com/httpoz/roles/releases)

### Composer

[](#composer)

Add the package to your project via composer.

```
composer require httpoz/roles:^v9.0
```

### Config File And Migrations

[](#config-file-and-migrations)

To publish the package config's file and migrations to your application. Run this command inside your terminal.

```
php artisan vendor:publish --provider="HttpOz\Roles\RolesServiceProvider"
php artisan migrate
```

### Enable HasRole Trait And Contract

[](#enable-hasrole-trait-and-contract)

Include `HasRole` trait and also implement `HasRole` contract inside your User model.

```
