PHPackages                             solution-forest/filament-access-management - 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. solution-forest/filament-access-management

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

solution-forest/filament-access-management
==========================================

filament-access-management

2.2.1(1y ago)9659.1k↑27.7%20MITPHPPHP ^8.1

Since Apr 24Pushed 8mo ago5 watchersCompare

[ Source](https://github.com/solutionforest/filament-access-management)[ Packagist](https://packagist.org/packages/solution-forest/filament-access-management)[ Docs](https://github.com/solutionforest/filament-access-management)[ RSS](/packages/solution-forest-filament-access-management/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (6)Dependencies (16)Versions (10)Used By (0)

filament-access-management
==========================

[](#filament-access-management)

[![Latest Version on Packagist](https://camo.githubusercontent.com/54f2ba1adfba9e8e9b5b43edd07f97a9e0266b5787d9094357d3b466e182d241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6c7574696f6e2d666f726573742f66696c616d656e742d6163636573732d6d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-access-management)[![Total Downloads](https://camo.githubusercontent.com/209a341b459378a17624e682459ec80b143a292e755524f3ec337eae77fe93e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6c7574696f6e2d666f726573742f66696c616d656e742d6163636573732d6d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/solution-forest/filament-access-management)

This is an authentication plugin for Filament Admin with Laravel-permission

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

[](#installation)

1. Ensure you have already installed the Filament panel.
2. You can install the package via composer:

    ```
    composer require solution-forest/filament-access-management
    ```
3. Add the necessary trait to your User model:

    ```
    use SolutionForest\FilamentAccessManagement\Concerns\FilamentUserHelpers;

    class User extends Authenticatable
    {
        use FilamentUserHelpers;
    }
    ```
4. **Clear your config cache**:

    ```
     php artisan optimize:clear
     # or
     php artisan config:clear
    ```
5. Register the plugin in your Panel provider:

    > **Important: Register the plugin in your Panel provider after version 2.x**

    ```
     use SolutionForest\FilamentAccessManagement\FilamentAccessManagementPanel;

     public function panel(Panel $panel): Panel
     {
         return $panel
             ->plugin(FilamentAccessManagementPanel::make());
     }
    ```
6. Then execute the following commands:

    ```
    php artisan filament-access-management:install
    ```

    If you don't already have a user named `admin`, this command creates a **Super Admin User** with the following credentials:

    - Name: admin
    - E-mail address: admin@("slug" pattern from config("app.name")).com
    - Password: admin

    You can also create the super admin user with:

    ```
    php artisan make:super-admin-user
    ```
7. Call upgrade command to upgrade data after version **2.2.0**

    ```
    php artisan filament-access-management:upgrade
    ```

Publish Configs, Views, Translations and Migrations
---------------------------------------------------

[](#publish-configs-views-translations-and-migrations)

You can publish the configs, views, translations and migrations with:

```
php artisan vendor:publish --tag="filament-access-management-config"

php artisan vendor:publish --tag="filament-access-management-views"

php artisan vendor:publish --tag="filament-access-management-translations"

php artisan vendor:publish --tag="filament-access-management-migrations"
```

Migration
---------

[](#migration)

```
php artisan migrate
```

Usage
-----

[](#usage)

Upon installation, "Menu", "Users", "Roles" and "Permissions" pages will be created. Each user have roles and each role have permissions.

[![image](https://user-images.githubusercontent.com/73818060/232434966-91ab94fe-620a-4894-8632-dbe5e535e5ae.png)](https://user-images.githubusercontent.com/73818060/232434966-91ab94fe-620a-4894-8632-dbe5e535e5ae.png)

Manage Menu: [![image](https://user-images.githubusercontent.com/73818060/232438118-0b4089e7-4ff0-40b8-93b1-c6d4c089ef14.png)](https://user-images.githubusercontent.com/73818060/232438118-0b4089e7-4ff0-40b8-93b1-c6d4c089ef14.png)

Manage Users and their roles: [![image](https://user-images.githubusercontent.com/73818060/232437828-73039db1-8976-4a23-a14d-2943d9495a47.png)](https://user-images.githubusercontent.com/73818060/232437828-73039db1-8976-4a23-a14d-2943d9495a47.png)[![image](https://user-images.githubusercontent.com/73818060/232437890-2db887e1-dcbb-4d96-b072-365720be66d7.png)](https://user-images.githubusercontent.com/73818060/232437890-2db887e1-dcbb-4d96-b072-365720be66d7.png)

Manage Roles and their permissions: [![image](https://user-images.githubusercontent.com/73818060/232438496-002b56d6-db98-4672-82cc-efcfc06fba9e.png)](https://user-images.githubusercontent.com/73818060/232438496-002b56d6-db98-4672-82cc-efcfc06fba9e.png)[![image](https://user-images.githubusercontent.com/73818060/232438548-29b655bc-d683-4924-90b7-6ba25991d7ff.png)](https://user-images.githubusercontent.com/73818060/232438548-29b655bc-d683-4924-90b7-6ba25991d7ff.png)

Manage Permissions: [![image](https://user-images.githubusercontent.com/73818060/232438632-e5d9a5e5-7ef5-4ca5-a330-37948acd9748.png)](https://user-images.githubusercontent.com/73818060/232438632-e5d9a5e5-7ef5-4ca5-a330-37948acd9748.png)[![image](https://user-images.githubusercontent.com/73818060/232438719-fc2bca0b-7233-4aae-bf87-9c1d8524e42d.png)](https://user-images.githubusercontent.com/73818060/232438719-fc2bca0b-7233-4aae-bf87-9c1d8524e42d.png)

Routing control
---------------

[](#routing-control)

In this plugin, permissions and routes are bound together, set the routes that the current permissions can access in the edit permissions page, select the method to access the routes in the `HTTP method` select box, and fill in the path that can be accessed in the `HTTP path`.

For example, if you want to add a permission, which can access the path `/admin/users` by `GET`, then `HTTP method` select `GET`, and `HTTP path` fill in `/users`.

If you want to access all the paths prefixed with `/admin/users`, then `HTTP path` fill in `/users*`; if you want to access the edit page, then `HTTP path` fill in `/users/*/edit`; if the method of each path in multiple paths is different, then `HTTP path` fill in `GET:users/*'. `.

If the above method is not sufficient, `HTTP path` also supports **routing aliases**, such as `admin.users.show`.

Super Administrator
-------------------

[](#super-administrator)

Create super admin user:

```
php artisan make:super-admin-user
```

Check permission:

```
# Check by permission's name
\SolutionForest\FilamentAccessManagement\Http\Auth\Permission::check($name)

# Check by http_path
\SolutionForest\FilamentAccessManagement\Http\Auth\Permission::checkPermission($path)
```

Get current user:

```
\SolutionForest\FilamentAccessManagement\Facades\FilamentAuthenticate::user();
```

Advance Usage
-------------

[](#advance-usage)

In default, the menu created will co-exist with the original menu of filament. To override the original menu with the menu from this package, modify `/config/filament-access-management.php` as following:

1. Set `filament.navigation.enabled => true`

```
    'filament' => [
        ...
        'navigation' => [
            /**
             * Using db based filament navigation if true.
             */
            'enabled' => true,
            /**
             * Table name db based filament navigation.
             */
            'table_name' => 'filament_menu',
            /**
             * Filament Menu Model.
             */
            'model' => Models\Menu::class,
        ]
        ...
    ]
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Carly](https://github.com/n/a)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance53

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~108 days

Recently: every ~130 days

Total

9

Last Release

259d ago

Major Versions

1.1 → 2.0.02023-08-08

1.2 → 2.1.02024-03-28

PHP version history (2 changes)1.0PHP ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9499120912b47a170291b3b795ea0255f060d8500bd2988535e4e6faccee5c8d?d=identicon)[solutionforest](/maintainers/solutionforest)

---

Top Contributors

[![cklei-carly](https://avatars.githubusercontent.com/u/68525320?v=4)](https://github.com/cklei-carly "cklei-carly (56 commits)")[![kelseylws](https://avatars.githubusercontent.com/u/73818060?v=4)](https://github.com/kelseylws "kelseylws (5 commits)")[![lam0819](https://avatars.githubusercontent.com/u/68211972?v=4)](https://github.com/lam0819 "lam0819 (2 commits)")[![mohammadgh1370](https://avatars.githubusercontent.com/u/38649905?v=4)](https://github.com/mohammadgh1370 "mohammadgh1370 (1 commits)")

---

Tags

laravelSolution Forestfilament-access-management

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/solution-forest-filament-access-management/health.svg)

```
[![Health](https://phpackages.com/badges/solution-forest-filament-access-management/health.svg)](https://phpackages.com/packages/solution-forest-filament-access-management)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[chiiya/filament-access-control

Admin user, role and permission management for Laravel Filament

21847.2k](/packages/chiiya-filament-access-control)[binary-cats/laravel-rbac

Laravel enum-backed RBAC extension of spatie/laravel-permission

7730.4k](/packages/binary-cats-laravel-rbac)

PHPackages © 2026

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