PHPackages                             ewald1976/filament-spatie-roles-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. ewald1976/filament-spatie-roles-permissions

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

ewald1976/filament-spatie-roles-permissions
===========================================

forked from Althinect/filament-spatie-roles-permissions

056PHP

Since Dec 28Pushed 3y agoCompare

[ Source](https://github.com/ewald1976/filament-spatie-roles-permissions)[ Packagist](https://packagist.org/packages/ewald1976/filament-spatie-roles-permissions)[ RSS](/packages/ewald1976-filament-spatie-roles-permissions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Description
===========

[](#description)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2d4d7ea14d032918dc5b8cdd5bb90dcf37e09cd43256b5f27ac6e55b3d461b32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6577616c64313937362f66696c616d656e742d7370617469652d726f6c65732d7065726d697373696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ewald1976/filament-spatie-roles-permissions)[![Total Downloads](https://camo.githubusercontent.com/925f153fc5871bff54c02cf00108929587750989e809c1354b046b67cbf3b68f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6577616c64313937362f66696c616d656e742d7370617469652d726f6c65732d7065726d697373696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ewald1976/filament-spatie-roles-permissions)[![GitHub Actions](https://github.com/ewald1976/filament-spatie-roles-permissions/actions/workflows/main.yml/badge.svg)](https://github.com/ewald1976/filament-spatie-roles-permissions/actions/workflows/main.yml/badge.svg)

This plugin is built on top of [Spatie's Permission](https://spatie.be/docs/laravel-permission/v5/introduction) package.

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

[](#installation)

You can install the package via composer:

```
composer require ewald1976/filament-spatie-roles-permissions
```

Since the package depends on [Spatie's Permission](https://spatie.be/docs/laravel-permission/v5/introduction) package. You have to publish the migrations by running:

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

Now you should add any other configurations needed for the Spatie-Permission package.

Usage
-----

[](#usage)

You can add this to your *form* method in your UserResource

```
return $form->schema([
    ...
    BelongsToManyMultiSelect::make('roles')->relationship('roles', 'name')
])
```

In addition to the field added to the UserResource. There will be 2 Resources published under *Roles and Permissions*. You can use these resources manage roles and permissions.

### Security

[](#security)

If you discover any security related issues, please create an issue.

Credits
-------

[](#credits)

- [Tharinda Rodrigo](https://github.com/UdamLiyanage/)
- [Udam Liyanage](https://github.com/UdamLiyanage/)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/df97bab73a3db90d0f86b3f545f4c6871d43c7598cbdaa05820af44ffa91de1e?d=identicon)[ewald1976](/maintainers/ewald1976)

---

Top Contributors

[![ewald1976](https://avatars.githubusercontent.com/u/67964228?v=4)](https://github.com/ewald1976 "ewald1976 (5 commits)")[![tharindarodrigo](https://avatars.githubusercontent.com/u/9903811?v=4)](https://github.com/tharindarodrigo "tharindarodrigo (3 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (2 commits)")[![UdamLiyanage](https://avatars.githubusercontent.com/u/20433694?v=4)](https://github.com/UdamLiyanage "UdamLiyanage (1 commits)")

### Embed Badge

![Health badge](/badges/ewald1976-filament-spatie-roles-permissions/health.svg)

```
[![Health](https://phpackages.com/badges/ewald1976-filament-spatie-roles-permissions/health.svg)](https://phpackages.com/packages/ewald1976-filament-spatie-roles-permissions)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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