PHPackages                             learn88/multirole - 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. learn88/multirole

ActiveLibrary

learn88/multirole
=================

MultiRole &amp; MultiUser for Laravel

v0.1.2(8y ago)0201MITPHPPHP ~5.6|~7.0

Since Jun 17Pushed 8y agoCompare

[ Source](https://github.com/learn88/multirole)[ Packagist](https://packagist.org/packages/learn88/multirole)[ Docs](https://github.com/learn88/multirole)[ RSS](/packages/learn88-multirole/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

MultiRole &amp; MultiUser for Laravel
=====================================

[](#multirole--multiuser-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/14806978115f988542f8ae3c7dc1faaf9c54db47599e860cd8b3e32933479e6f/68747470733a2f2f706f7365722e707567782e6f72672f6c6561726e38382f6d756c7469726f6c652f762f737461626c65)](https://packagist.org/packages/learn88/multirole)[![Total Downloads](https://camo.githubusercontent.com/6665d089755c1ad1f9b20e9e85caec157559aaf1e466fe62a39b8db6cb1a0083/68747470733a2f2f706f7365722e707567782e6f72672f6c6561726e38382f6d756c7469726f6c652f646f776e6c6f616473)](https://packagist.org/packages/learn88/multirole)[![Latest Unstable Version](https://camo.githubusercontent.com/c7ddba92e5a5b1d48379b5395c238c20925f8b21c48ee85e0f3c82dc65e980e3/68747470733a2f2f706f7365722e707567782e6f72672f6c6561726e38382f6d756c7469726f6c652f762f756e737461626c65)](https://packagist.org/packages/learn88/multirole)[![License](https://camo.githubusercontent.com/3f756cb9d74998807d1e26a984dbcd734ec976eba3121ee8e3f309001618c05a/68747470733a2f2f706f7365722e707567782e6f72672f6c6561726e38382f6d756c7469726f6c652f6c6963656e7365)](https://packagist.org/packages/learn88/multirole)

Install
-------

[](#install)

Via Composer

```
$ composer require learn88/multirole
```

Next, add your `new Provider` to the providers array of `config/app.php:`

```
'providers' => [

  learn88\multirole\multiroleServiceProvider::class,

],
```

Next, add your `new Kernel` to the `HTTP kernel` `$routeMiddleware`

```
protected $routeMiddleware = [

  'roles' => \learn88\multirole\Http\Middleware\CheckRole::class,

],
```

### New

[](#new)

**Command:**

```
  php artisan make:multirole
```

```
  composer dump-autoload
```

*required : database*

```
  php artisan migrate
```

```
  php artisan db:seed
```

###### Default

[](#default)

> username :

> password : password

Usage
-----

[](#usage)

```
    Route::get('users}', [
      'uses' => 'UserCtrl@index',
      'as' => 'users.show',
      'middleware'=>'roles',  // route middleware check role
      'roles'=>['role_admin'] // allow role name ['role_name' , 'etc..']
    ]);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eee941c68be84244cc8c97d8eefdcc10551a7dccfe32ce61321cd04e992c8a1e?d=identicon)[kopin88](/maintainers/kopin88)

---

Tags

laravelmultiusersmultiroles

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/learn88-multirole/health.svg)

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)

PHPackages © 2026

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