PHPackages                             askedio/laravel5-rbac - 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. askedio/laravel5-rbac

AbandonedArchivedLibrary

askedio/laravel5-rbac
=====================

Laravel 5.2 RBAC

71333PHP

Since Feb 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Askedio/Laravel5-RBAC)[ Packagist](https://packagist.org/packages/askedio/laravel5-rbac)[ RSS](/packages/askedio-laravel5-rbac/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel5-RBAC
=============

[](#laravel5-rbac)

User Roles &amp; Permissions for Laravel 5.2

Overview
========

[](#overview)

This Package glues together laravel-permission and laravel-authorize to be one package giving you all the features and a simple install command to easily get started.

More details here:

-
-

Installation
============

[](#installation)

### Install with composer

[](#install-with-composer)

```
composer require askedio/laravel5-rbac:dev-master

```

### Add to Providers array in config/app.php

[](#add-to-providers-array-in-configappphp)

```
'providers' => [
   Askedio\Laravel5RBAC\Providers\GenericServiceProvider::class,
   ...

```

### Change your config/auth.php providers-&gt;users-&gt;model

[](#change-your-configauthphp-providers-users-model)

```
    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => Askedio\Laravel5RBAC\User::class,
        ],
        ...

```

### Set up auth views and migrations

[](#set-up-auth-views-and-migrations)

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
php artisan make:auth
php artisan migrate

```

### Install the role and user

[](#install-the-role-and-user)

```
php artisan user:create

```

### Serv

[](#serv)

```
php artisan serv

```

### Use in routes

[](#use-in-routes)

```
Route::get('dashboard', [
   'middleware'=> ['web','can:admin'],
   'uses' => 'HomeController@index',
]);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/1173636?v=4)[William](/maintainers/gcphost)[@gcphost](https://github.com/gcphost)

---

Top Contributors

[![gcphost](https://avatars.githubusercontent.com/u/1173636?v=4)](https://github.com/gcphost "gcphost (26 commits)")

### Embed Badge

![Health badge](/badges/askedio-laravel5-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/askedio-laravel5-rbac/health.svg)](https://phpackages.com/packages/askedio-laravel5-rbac)
```

PHPackages © 2026

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