© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Mansoor Khan

Is it possible to apply a filter from an action?

I need to create a shortcut filter. I came up with the idea of defining an
Action
Action
in
headerActions
headerActions
. So I am wondering, if there is any possibility to apply filter from an action or possibly modify the eloquent query.

 ->headerActions([
        Action::make('Show Client Translations')
            ->button()
            ->action(function () {
                // Apply filter
                // OR modify table eloquent query
            }),
])
 ->headerActions([
        Action::make('Show Client Translations')
            ->button()
            ->action(function () {
                // Apply filter
                // OR modify table eloquent query
            }),
])
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Is it possible to make an Action reactive?
FilamentFFilament / ❓┊help
3y ago
Is it possible to load a table inside an Action Form?
FilamentFFilament / ❓┊help
2y ago
Is it possible to add paramaters to an import action?
FilamentFFilament / ❓┊help
3y ago
Is it possible to add an Action to an Infolist Section header?
FilamentFFilament / ❓┊help
3y ago