PHPackages                             brand3000/nova-roles-and-permissions - 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. brand3000/nova-roles-and-permissions

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

brand3000/nova-roles-and-permissions
====================================

This package allows separating roles for admins and other types of users while stored in the same users table. Additionally, it provides functionality for managing permissions (reader/editor) for the admins of a project powered by Laravel Nova.

v1.0.9(2y ago)16321MITPHP

Since Apr 24Pushed 1y ago5 watchersCompare

[ Source](https://github.com/Brand3000/nova-roles-and-permissions)[ Packagist](https://packagist.org/packages/brand3000/nova-roles-and-permissions)[ RSS](/packages/brand3000-nova-roles-and-permissions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (11)Used By (0)

Laravel Nova Roles and Permissions
==================================

[](#laravel-nova-roles-and-permissions)

This package allows separating roles for admins and other types of users while stored in the same users table. Additionally, it provides functionality for managing permissions (reader/editor) for the admins of a project powered by Laravel Nova.

Screenshots
-----------

[](#screenshots)

[![NovaRolesAndPermissions](/docs/nova-roles-and-permissions.png)](/docs/nova-roles-and-permissions.png)

Requirements
------------

[](#requirements)

Laravel Nova 4

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

[](#installation)

### Install the package using composer

[](#install-the-package-using-composer)

```
composer require brand3000/nova-roles-and-permissions
```

### Publish the migration, models, resources, and policies

[](#publish-the-migration-models-resources-and-policies)

Be aware that the package will create/overwrite the next files:

- Models:
    - app/Models/Admin.php
    - app/Models/User.php
- Nova resources:
    - app/Nova/Admin.php
    - app/Nova/User.php
- Policies:
    - app/Policies/AdminPolicy.php
    - app/Policies/UserPolicy.php
    - app/Policies/CorePermissions.php

```
php artisan vendor:publish --provider="Brand3000\NovaRolesAndPermissions\Publisher" --force
```

### Run new migration

[](#run-new-migration)

```
php artisan migrate
```

### Set administrators

[](#set-administrators)

Go to your database, find the users table and choose administrators by setting the role\_admin column into 1. Additionally, set the supar\_admin column into 1 for those who are eligible. If you have different types of users in your project, feel free to add more role\_ columns for future development.

### During development

[](#during-development)

During development, you have to add all the resources you want to be managed into the array $booleanOptions of the fields() function in the app/Nova/Admin.php nova resource.

### Before switching a project to the production state

[](#before-switching-a-project-to-the-production-state)

Go into the NovaServiceProvider.php file and add the next logic into the gate() function

```
Gate::define('viewNova', function ($user) {
    return $user->role_admin;
});
```

### If you want to seed a default super admin, run the next command

[](#if-you-want-to-seed-a-default-super-admin-run-the-next-command)

```
php artisan db:seed --class=SuperAdminSeeder

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~0 days

Total

10

Last Release

749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b34bf33fcb783ec187a495984ddaac53a6142bd1fcaecfe45c8c89fbcdb8d2b?d=identicon)[Brand3000](/maintainers/Brand3000)

---

Top Contributors

[![Brand3000](https://avatars.githubusercontent.com/u/71566210?v=4)](https://github.com/Brand3000 "Brand3000 (3 commits)")[![supportsitewill](https://avatars.githubusercontent.com/u/193242734?v=4)](https://github.com/supportsitewill "supportsitewill (2 commits)")

---

Tags

laravelrolespermissionsnova

### Embed Badge

![Health badge](/badges/brand3000-nova-roles-and-permissions/health.svg)

```
[![Health](https://phpackages.com/badges/brand3000-nova-roles-and-permissions/health.svg)](https://phpackages.com/packages/brand3000-nova-roles-and-permissions)
```

###  Alternatives

[jeremykenedy/laravel-roles

A Powerful package for handling roles and permissions in Laravel. Supports Laravel 5.3 up to 12.

1.0k826.8k7](/packages/jeremykenedy-laravel-roles)[pktharindu/nova-permissions

Laravel Nova Grouped Permissions (ACL)

136387.1k](/packages/pktharindu-nova-permissions)[silvanite/novatoolpermissions

Laravel Nova Permissions (Roles and Permission based Access Control (ACL))

100256.7k2](/packages/silvanite-novatoolpermissions)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[beatswitch/lock-laravel

A Laravel Driver for Lock.

15529.1k1](/packages/beatswitch-lock-laravel)

PHPackages © 2026

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