© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Medo

How to get Table filters values from tables ?

Hello every one , am using this plugin
https://filamentphp.com/plugins/pxlrbt-excel
https://filamentphp.com/plugins/pxlrbt-excel

and I want to export Data from table but it's export all and ignore applied filters ! so how can I get filters values from table to pass it to plugin query via
->modifyQueryUsing()
->modifyQueryUsing()
?


Here's my export action in table header
->headerActions([
    ExportAction::make()
                ->exports([
                    ExcelExport::make()->modifyQueryUsing(fn($query) => $query)
                               ->withColumns([
                                   Column::make('chartOfAccount.name'),
                                   Column::make('chartOfAccount.chartOfAccountType.name'),
                                   Column::make('chartOfAccount.subType.name'),
                                   Column::make('journalEntry.date'),
                                   Column::make('description'),
                                   Column::make('debit'),
                                   Column::make('credit'),
                               ])
                ])
])
->headerActions([
    ExportAction::make()
                ->exports([
                    ExcelExport::make()->modifyQueryUsing(fn($query) => $query)
                               ->withColumns([
                                   Column::make('chartOfAccount.name'),
                                   Column::make('chartOfAccount.chartOfAccountType.name'),
                                   Column::make('chartOfAccount.subType.name'),
                                   Column::make('journalEntry.date'),
                                   Column::make('description'),
                                   Column::make('debit'),
                                   Column::make('credit'),
                               ])
                ])
])
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

Get values from filters
FilamentFFilament / ❓┊help
17mo ago
Separate Filters from table
FilamentFFilament / ❓┊help
3y ago
Get table filter values
FilamentFFilament / ❓┊help
2y ago
How to change table query to get computed values?
FilamentFFilament / ❓┊help
3y ago