PHPackages                             pooyadch/laravelrolemanagement - 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. pooyadch/laravelrolemanagement

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

pooyadch/laravelrolemanagement
==============================

:description

05PHP

Since Aug 8Pushed 7y agoCompare

[ Source](https://github.com/Pooyadch/LaravelRoleManagement)[ Packagist](https://packagist.org/packages/pooyadch/laravelrolemanagement)[ RSS](/packages/pooyadch-laravelrolemanagement/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaravelRoleManagement
=====================

[](#laravelrolemanagement)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6c19a011082bdb8a5037b167b6fbf3ca0c29f9b2dc84e3bd269bd8b2eda9131b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6f79616463682f6c61726176656c726f6c656d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pooyadch/laravelrolemanagement)[![Total Downloads](https://camo.githubusercontent.com/a1d2814052a53c9b60edbc3cf50ead484aaf7331f238c13466b3c5752ce94547/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6f79616463682f6c61726176656c726f6c656d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pooyadch/laravelrolemanagement)[![Build Status](https://camo.githubusercontent.com/40d15f4986cc9fa7e1a3ee920a843e976a033bedada3055a8f3486b41e89b1b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706f6f79616463682f6c61726176656c726f6c656d616e6167656d656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pooyadch/laravelrolemanagement)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require pooyadch/laravelrolemanagement:dev-master
```

migrate all database

```
php artisan migrate

```

add following code into Kernel.php in App/Http

```
   protected $routeMiddleware = [
           'UserRolePermissionMiddleware' =>UserRolePermissionMiddleware::class,
       ];
```

Usage
-----

[](#usage)

add "UserRolePermissionMiddleware" middleware on your route

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [author name](https://github.com/pooyadch)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38488497?v=4)[Pooyadch](/maintainers/pooyadch)[@Pooyadch](https://github.com/Pooyadch)

### Embed Badge

![Health badge](/badges/pooyadch-laravelrolemanagement/health.svg)

```
[![Health](https://phpackages.com/badges/pooyadch-laravelrolemanagement/health.svg)](https://phpackages.com/packages/pooyadch-laravelrolemanagement)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
