PHPackages                             drafolin/filament-inverse-shield - 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. drafolin/filament-inverse-shield

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

drafolin/filament-inverse-shield
================================

Package to facilitate persistance of Filament Shield's roles and permissions

v1.4.8(3mo ago)0901MITPHPCI failing

Since Jan 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/drafolin/filament-inverse-shield)[ Packagist](https://packagist.org/packages/drafolin/filament-inverse-shield)[ RSS](/packages/drafolin-filament-inverse-shield/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (17)Used By (0)

Filament Inverse Shield
=======================

[](#filament-inverse-shield)

This plugin is aimed to users of the Filament Shield plugin, who want to persist their settings in a file, and load them back later.

Introduction
------------

[](#introduction)

By default, the Filament Shield plugin saves roles and roles/permission relationships in the database. This makes it quite difficult to manage the roles and permissions in a version control system, or to share them between different instances of the same application.

This plugin allows you to save the roles and permissions in a seeder file, which can be loaded back later.

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

[](#installation)

To install this plugin, you need to add it to your `composer.json` file:

```
composer require drafolin/filament-inverse-shield
```

Usage
-----

[](#usage)

To save the roles and permissions in a seeder file, you need to run the following command:

```
php artisan inverse-shield
```

This will create a seeder file in the `database/seeds` directory.

To load the roles and permissions from the seeder file, you need to run the following command:

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

Caution

This command deletes all roles and permissions, restoring them to the time the `inverse-shield` command was run.

It also tries its best to restore the roles to each user, accordingly to the **name** of the role. If the role was renamed, the user will lose the role. A warning will be displayed in this case.

Parameters
----------

[](#parameters)

The `inverse-shield` command supports the default artisan parameters, as well as the following custom parameters:

- `--seeder`: The name of the seeder file to create. Default: `ShieldSeeder`.
- `--panel`: The name of the filament panel to use, if you renamed it. Default: `web`.

License
-------

[](#license)

This plugin is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance85

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.8% 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 ~26 days

Recently: every ~82 days

Total

15

Last Release

109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ad6d6a26e9e12e984490a2de458b491e7718d0167cee2d26ab8e4b30aec9293?d=identicon)[drafolin](/maintainers/drafolin)

---

Top Contributors

[![drafolin](https://avatars.githubusercontent.com/u/66629792?v=4)](https://github.com/drafolin "drafolin (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

### Embed Badge

![Health badge](/badges/drafolin-filament-inverse-shield/health.svg)

```
[![Health](https://phpackages.com/badges/drafolin-filament-inverse-shield/health.svg)](https://phpackages.com/packages/drafolin-filament-inverse-shield)
```

###  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)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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