PHPackages                             webrek/laravel-mongo-permission-filament - 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. [Database &amp; ORM](/categories/database)
4. /
5. webrek/laravel-mongo-permission-filament

ActiveLibrary[Database &amp; ORM](/categories/database)

webrek/laravel-mongo-permission-filament
========================================

Filament v3 panel resources for webrek/laravel-mongo-permission

v0.1.0(3w ago)00MITPHPPHP ^8.1

Since May 19Pushed 3w agoCompare

[ Source](https://github.com/webrek/laravel-mongo-permission-filament)[ Packagist](https://packagist.org/packages/webrek/laravel-mongo-permission-filament)[ RSS](/packages/webrek-laravel-mongo-permission-filament/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

webrek/laravel-mongo-permission-filament
========================================

[](#webreklaravel-mongo-permission-filament)

[Filament v3](https://filamentphp.com) panel resources for [`webrek/laravel-mongo-permission`](https://github.com/webrek/laravel-mongo-permission).

Status
------

[](#status)

**v0.1.0 — alpha.** The plugin ships working Role and Permission resources for a Filament panel. Forms support name, guard, team scope, attached permissions, and (for roles) parent-role inheritance. Tables surface row counts and badge wildcard permissions.

What is **not** in v0.1.0 yet:

- A relation manager on the User resource (assign roles/permissions to a user from the user edit page).
- A team-aware scope filter on the panel.
- Bulk wildcard warnings on permission creation.
- Tests against a real Filament panel.

Contributions welcome — see "Roadmap" below.

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

[](#requirements)

DependencyVersionPHP8.1+Laravel10.x / 11.x / 12.xFilament3.x`webrek/laravel-mongo-permission`^1.0Install
-------

[](#install)

```
composer require webrek/laravel-mongo-permission-filament
```

Register the plugin on your Filament panel:

```
use Webrek\MongoPermissionFilament\MongoPermissionPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            MongoPermissionPlugin::make(),
        ]);
}
```

The plugin adds two resources under an "Access control" navigation group: **Roles** and **Permissions**.

What the resources do
---------------------

[](#what-the-resources-do)

### Roles

[](#roles)

- **Create / edit** a role with name, guard, optional `team_id`.
- **Attach permissions** via a multi-select pulling from the Mongo permissions collection.
- **Inheritance:** pick parent roles via a multi-select; the underlying package walks the chain at lookup time.
- **List:** searchable by name, sortable by guard. Permission and parent counts are shown inline.

### Permissions

[](#permissions)

- **Create / edit** with name, guard, optional `team_id`.
- Names containing `*` are visually badged so operators notice wildcard creation.
- **List:** searchable, sortable, filterable by guard.

Roadmap
-------

[](#roadmap)

The plugin is intentionally minimal in v0.1.0. Future work:

1. **User relation manager** — a relation manager you can plug into your own `UserResource` so admins can attach / detach roles and permissions on a user without leaving the user record. Will honor team context and surface expiry on each grant.
2. **Team filter** — a panel-level filter that scopes all resource queries to the current team, integrating with the package's `setPermissionsTeamId` and `team-context` middleware.
3. **TTL grant UI** — assign-until widget in the relation manager for v1.1 expiring grants.
4. **Bulk-import** — UI wrapper around `permission:migrate-from-spatie`.
5. **Filament panel tests** with `pestphp/pest-plugin-laravel` or PHPUnit + Livewire test helpers.

Open an issue or PR with proposals.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

22d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d8deca81629993819087597b5ad7695976b02e3d014f038e26e985f35f569de?d=identicon)[webrek](/maintainers/webrek)

---

Top Contributors

[![webrek](https://avatars.githubusercontent.com/u/5001338?v=4)](https://github.com/webrek "webrek (1 commits)")

---

Tags

laravelauthorizationaclrolespermissionsrbacmongodbfilament

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webrek-laravel-mongo-permission-filament/health.svg)

```
[![Health](https://phpackages.com/badges/webrek-laravel-mongo-permission-filament/health.svg)](https://phpackages.com/packages/webrek-laravel-mongo-permission-filament)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.5M115](/packages/bezhansalleh-filament-shield)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.6M46](/packages/santigarcor-laratrust)[hasinhayder/tyro

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

6753.6k5](/packages/hasinhayder-tyro)[arcanedev/laravel-auth

Laravel Authorization package.

264.8k1](/packages/arcanedev-laravel-auth)

PHPackages © 2026

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