PHPackages                             beranidigital/filament-access - 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. beranidigital/filament-access

ActiveLibrary

beranidigital/filament-access
=============================

Multi-panel aware fine-grained permissions for Laravel Filament to analyze, generate and inject into all classes and methods in the application. or whatever that means.

0.2.1(1y ago)0569[1 PRs](https://github.com/beranidigital/filament-access/pulls)MITPHPPHP ^8.1

Since Jul 3Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/beranidigital/filament-access)[ Packagist](https://packagist.org/packages/beranidigital/filament-access)[ Docs](https://github.com/beranidigital/filament-access)[ GitHub Sponsors](https://github.com/beranidigital)[ RSS](/packages/beranidigital-filament-access/feed)WikiDiscussions main Synced 1mo ago

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

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

[](#filament-access)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d78ba5cc1d172179c983a07591c51132c9f501fde47a32f8070d50028babfaa8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626572616e696469676974616c2f66696c616d656e742d6163636573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beranidigital/filament-access)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b83e6df88230a8b795ee5e163da595ffc0a15a5b37f9501d19acaf78337b2b53/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f626572616e696469676974616c2f66696c616d656e742d6163636573732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/beranidigital/filament-access/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/dd3cd58c336f4d974a5040648da255b9ab1fd52179a08e434df70d561f32301b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f626572616e696469676974616c2f66696c616d656e742d6163636573732f6669782d7068702d636f64652d7374796c696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/beranidigital/filament-access/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8488741dbfebc59eb736dcd21aaa95b5310c9161f794ba004408d7d1990989e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626572616e696469676974616c2f66696c616d656e742d6163636573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beranidigital/filament-access)

Multi-panel aware ultra-fine-grained permissions for Laravel Filament to analyze, generate and inject into all classes and methods in the application.

What this package does
----------------------

[](#what-this-package-does)

- Generate list of almost all Filament component permissions
- Automatically redefine classes to avoid conflict

Why I need this package
-----------------------

[](#why-i-need-this-package)

- You have too many classes and methods to define permissions one by one
- Default Filament authorization doesn't support multi-panel

What this package doesn't do
----------------------------

[](#what-this-package-doesnt-do)

- It doesn't provide complete solution for authorization
- It's not meant for custom defined permissions, you need to define it yourself

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

[](#installation)

You can install the package via composer:

```
composer require beranidigital/filament-access
```

You can publish the config file with:

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

Usage
-----

[](#usage)

```
\BeraniDigitalID\FilamentAccess\Facades\FilamentAccess::analyzeAll();
```

or

```
php artisan filament-access:generate
php artisan filament-access:hijack
```

How it works
------------

[](#how-it-works)

1. It hooks into a class to correct the permission
2. The class will call `Gate::authorize('viewAny', $correctArgument)` with an example of `App\Filament\Resources\MyResource` as the argument
3. It's up to you to authorize it with your own custom logic

```
\Illuminate\Support\Facades\Gate::before(function ($user, $ability, $arguments) {
    $permission = \BeraniDigitalID\FilamentAccess\Facades\FilamentAccess::determinePermissionName($ability, $arguments);
    if (!$user->hasPermissionTo($permission)) {
        return false;
    }
    // continue to the next authorization logic
});
```

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)

- [Yusuf Sekhan Althaf](https://github.com/Ticlext-Altihaf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance58

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Every ~1 days

Total

3

Last Release

683d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/723b277df7f51911151449e126c6527b11090326fe61533900cea8a21d76cdee?d=identicon)[Ticlext-Altihaf](/maintainers/Ticlext-Altihaf)

---

Top Contributors

[![Ticlext-Altihaf](https://avatars.githubusercontent.com/u/77704356?v=4)](https://github.com/Ticlext-Altihaf "Ticlext-Altihaf (41 commits)")

---

Tags

laravelberanidigitalfilament-access

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/beranidigital-filament-access/health.svg)

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

###  Alternatives

[joaopaulolndev/filament-edit-profile

Filament package to edit profile

250258.1k34](/packages/joaopaulolndev-filament-edit-profile)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[jacobtims/filament-logger

Activity logger for filament

1721.0k4](/packages/jacobtims-filament-logger)

PHPackages © 2026

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