PHPackages                             prllxtchz/authorization - 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. prllxtchz/authorization

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

prllxtchz/authorization
=======================

Roles &amp; Permission management with Laravel user module

v2.1.16(7y ago)1110MITHTML

Since Jun 28Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (30)Used By (0)

[![](https://camo.githubusercontent.com/0ae70c2353728bfc64ecf78f451ac50a929e46814aaa29fec9b459ea99ccdaa4/687474703a2f2f706172616c6c61782e6c6b2f696d672f6c6f676f2e706e67)](https://parallax.lk)

[![Latest Stable Version](https://camo.githubusercontent.com/345d3398d002a42e07a69ba5270898b249c439dcc2d78864fa0d71c1cf1834a3/68747470733a2f2f706f7365722e707567782e6f72672f70726c6c787463687a2f617574686f72697a6174696f6e2f762f737461626c65)](https://packagist.org/packages/prllxtchz/authorization)[![Total Downloads](https://camo.githubusercontent.com/cb591866b7dbcc93fed5cab643a1b3819974c2304c5d1b565f91053737d4f9ce/68747470733a2f2f706f7365722e707567782e6f72672f70726c6c787463687a2f617574686f72697a6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/prllxtchz/authorization)[![License](https://camo.githubusercontent.com/90454fd6b3ad3a8351b94de6fb4bc529fba7dc07137b4a886397c89a2c33374d/68747470733a2f2f706f7365722e707567782e6f72672f70726c6c787463687a2f617574686f72697a6174696f6e2f6c6963656e7365)](https://packagist.org/packages/prllxtchz/authorization)

Adding User &amp; User Role CRUD to Laravel Project
===================================================

[](#adding-user--user-role-crud-to-laravel-project)

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

[](#installation)

```
composer require prllxtchz/authorization

```

Publish [Spatie\\Permission](https://github.com/spatie/laravel-permission) package migrations &amp; config file to project.

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
```

running authorization package views, migrations &amp; seeds to project.

```
php artisan vendor:publish --provider="Prllxtchz\Authorization\AuthorizationServiceProvider"
```

Then run Laravel auth command to generate auth files.

```
php artisan make:auth

```

and add HasRoles trait to User model.

```
use Spatie\Permission\Traits\HasRoles;

```

```
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use HasRoles;

    // ...
}

```

Before run any migrations, update database/seeds/DatabaseSeeder.php file with following,

```
$this->call(UserPermissionSeed::class);
$this->call(UserRolePermissionSeed::class);
$this->call(GiveAllPermissionsToAdmin::class);
```

Then you can run all migrations with seeds.

You may need to run `composer dump-autload` before run migrations.

```
php artisan migrate --seed
```

Usage
-----

[](#usage)

### Admin login detail which has all current permissions

[](#admin-login-detail-which-has-all-current-permissions)

```
Name: Admin
Email: admin@parallax.lk
Password: @parallax

```

### Generated routes

[](#generated-routes)

/users /routes

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~3 days

Total

29

Last Release

2799d ago

Major Versions

v1.1.0 → v2.0-beta.12018-09-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a469a5869c9bb25cafcf4632511862583fbdd5ddb33d7f6f0af52aab854f57d?d=identicon)[parallaxtechz](/maintainers/parallaxtechz)

---

Top Contributors

[![priyanganamal](https://avatars.githubusercontent.com/u/13314033?v=4)](https://github.com/priyanganamal "priyanganamal (40 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/prllxtchz-authorization/health.svg)

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[althinect/filament-spatie-roles-permissions

340954.7k9](/packages/althinect-filament-spatie-roles-permissions)[backpack/permissionmanager

Users and permissions management interface for Laravel 5 using Backpack CRUD.

5591.8M16](/packages/backpack-permissionmanager)[vyuldashev/nova-permission

A Laravel Nova tool for Spatie's Permission library.

4332.5M3](/packages/vyuldashev-nova-permission)[kiritokatklian/nova-permission

A Laravel Nova tool for Spatie's Permission library.

791.1M3](/packages/kiritokatklian-nova-permission)[sereny/nova-permissions

Laravel Nova - Roles &amp; Permissions

86388.6k1](/packages/sereny-nova-permissions)

PHPackages © 2026

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