PHPackages                             defstudio/filament-dynamic-actions - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. defstudio/filament-dynamic-actions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

defstudio/filament-dynamic-actions
==================================

Dynamically disable or hide actions when form is dirty

v4.0.5(3mo ago)31.5k↓78.1%MITPHPPHP ^8.4CI passing

Since Dec 20Pushed 1w ago2 watchersCompare

[ Source](https://github.com/defstudio/filament-dynamic-actions)[ Packagist](https://packagist.org/packages/defstudio/filament-dynamic-actions)[ Docs](https://github.com/defstudio/filament-dynamic-actions)[ Fund](https://paypal.me/defstudiosrl)[ GitHub Sponsors](https://github.com/defstudio)[ RSS](/packages/defstudio-filament-dynamic-actions/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (24)Versions (17)Used By (0)

[![Filament Dynamic Actions](https://camo.githubusercontent.com/052d567239d914f30883cd62ea8f7d718dcf05584223c03d615c2ef955d068ff/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e7425323044796e616d6963253230416374696f6e732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64656673747564696f25324666696c616d656e742d64796e616d69632d616374696f6e73267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4175746f2b64697361626c652b616374696f6e732b696e2b64697274792b666f726d73266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d72656672657368)](https://camo.githubusercontent.com/052d567239d914f30883cd62ea8f7d718dcf05584223c03d615c2ef955d068ff/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e7425323044796e616d6963253230416374696f6e732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64656673747564696f25324666696c616d656e742d64796e616d69632d616374696f6e73267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4175746f2b64697361626c652b616374696f6e732b696e2b64697274792b666f726d73266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d72656672657368)

[![Latest Version on Packagist](https://camo.githubusercontent.com/80325449ef72cc6c64ff3a472a3b1d1655a8f60709ab5e1afbbee83acb6ffe30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656673747564696f2f66696c616d656e742d64796e616d69632d616374696f6e732e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/filament-dynamic-actions)[![Code Style](https://camo.githubusercontent.com/d05c28ea1e77022d55105871710dcf3033e7b600856524638e6b5f829af66b49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656673747564696f2f66696c616d656e742d64796e616d69632d616374696f6e732f6669782d7068702d636f64652d7374796c696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c652663616368655365636f6e64733d33363030)](https://github.com/defstudio/filament-dynamic-actions/actions?query=workflow%3Alint+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/046eeb8eb5a204e232a01da0d7437830052abe78a761ded8779e0d8d7b33a7ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656673747564696f2f66696c616d656e742d64796e616d69632d616374696f6e732e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/filament-dynamic-actions)[![License](https://camo.githubusercontent.com/5690c5fa66c5f9faa28ede9ca500868c303bb401ae86b79db38868cb80628652/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64656673747564696f2f66696c616d656e742d64796e616d69632d616374696f6e733f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/defstudio/filament-dynamic-actions)[![Twitter Follow](https://camo.githubusercontent.com/693066b709807898103e87dd7be499e1ad0e773de86f7dc3037a98dbb7159db4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f466162696f49766f6e613f6c6162656c3d466f6c6c6f77267374796c653d736f6369616c)](https://twitter.com/FabioIvona?ref_src=twsrc%5Etfw)

Want to enable/disable a Filament action when the form is dirty/unsaved? With this package, it will be as easy as:

```
    \Filament\Actions\Action::make('download')
            ->icon('heroicon-o-document-arrow-down')
            ->action(function($record){...})
             ->disabledWhenDirty()
```

all with Alpine, no need of extra livewire requests to the backend

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

[](#installation)

You can install the package via composer:

```
composer require defstudio/filament-dynamic-actions
```

You can publish the translations files with:

```
php artisan vendor:publish --tag="filament-dynamic-actions-translations"
```

Usage
-----

[](#usage)

This package simply adds a new method to the page actions that allows to disable it when the form is dirty (all parameters are optional, default values will be used if missing):

```
    \Filament\Actions\Action::make('download')
            ->icon('heroicon-o-document-arrow-down')
            ->action(function($record){...})
             ->disabledWhenDirty(
                message: "oops! There are unsaved changes",
                disabledClass: 'disabled:opacity-100 disabled:bg-red-500',
                ignoredFields: [
                    'path.also_with_subpath.of.a.field.i_dont_care_to_check'
                ]
             )
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. [Follow Us](https://twitter.com/FabioIvona) on Twitter for more updates about this package.

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)

- [Fabio Ivona](https://github.com/fabio-ivona)
- [def:studio team](https://github.com/defstudio)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 56.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 ~37 days

Recently: every ~52 days

Total

13

Last Release

109d ago

Major Versions

v0.0.7 → v4.0.02025-08-18

PHP version history (2 changes)v0.0.1PHP ^8.1

v4.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/db5e0ab5568062368a52c61d67381c1a35be5e5c816968dd3883bc7ba2d46b53?d=identicon)[fabio.ivona](/maintainers/fabio.ivona)

---

Top Contributors

[![fabio-ivona](https://avatars.githubusercontent.com/u/8792274?v=4)](https://github.com/fabio-ivona "fabio-ivona (42 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![MarioGattolla](https://avatars.githubusercontent.com/u/94918437?v=4)](https://github.com/MarioGattolla "MarioGattolla (6 commits)")

---

Tags

laraveldefstudiofilament-dynamic-actions

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/defstudio-filament-dynamic-actions/health.svg)

```
[![Health](https://phpackages.com/badges/defstudio-filament-dynamic-actions/health.svg)](https://phpackages.com/packages/defstudio-filament-dynamic-actions)
```

###  Alternatives

[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94135.4k5](/packages/marcelweidum-filament-expiration-notice)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)

PHPackages © 2026

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