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(5mo ago)0961[2 PRs](https://github.com/drafolin/filament-inverse-shield/pulls)MITPHPCI failing

Since Jan 22Pushed 2w 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 today

READMEChangelog (5)Dependencies (4)Versions (24)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 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.4% 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

163d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66629792?v=4)[Dråfølin](/maintainers/drafolin)[@drafolin](https://github.com/drafolin)

---

Top Contributors

[![drafolin](https://avatars.githubusercontent.com/u/66629792?v=4)](https://github.com/drafolin "drafolin (37 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 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

[althinect/filament-spatie-roles-permissions

3481.1M10](/packages/althinect-filament-spatie-roles-permissions)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[ercogx/laravel-filament-starter-kit

This is a Filament v5 Starter Kit for Laravel 13, designed to accelerate the development of Filament-powered applications.

461.7k](/packages/ercogx-laravel-filament-starter-kit)

PHPackages © 2026

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