© 2026 Hedgehog Software, LLC

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

Get the underlying query after filtering a table

I imagine this is a unique request but is it possible to get the final DB query after you've sorted and filtered a table?

What I'm trying to accomplish (there might be better ways) is to take a table and allow a user to filter down and use the filtered results to send an email to all the ones left in the table. The problem comes in where a filtered table could, in theory, still contain thousands of records so I was thinking I could just grab the underlying query and do things on my own, where I'm not sure bulk actions would work with that much data and that many pages of data.
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

Struggling filtering a table
FilamentFFilament / ❓┊help
3y ago
Filtering by a related table column changes the table id
FilamentFFilament / ❓┊help
3y ago
Manual filter after query in table
FilamentFFilament / ❓┊help
2y ago
TableAction in the first row of a table
FilamentFFilament / ❓┊help
3y ago