© 2026 Hedgehog Software, LLC

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

How to permanently filter table

I think my question is quite simple:

I have a table
invoices
invoices
that I'll link to a resource. but I want to filter the table so that the currently authenticated user can only see/edit/create invoices that are associated with him.

So this is not a filter that the user can control
Solution
Use the ->query() method on the $table instance. Here’s an example:
->query(MyModel::query()->orderBy('time', 'desc')->limit(100))
->query(MyModel::query()->orderBy('time', 'desc')->limit(100))
Jump to solution
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

TablesRenderHook after table filter / toggle columns
FilamentFFilament / ❓┊help
6mo ago
Permanently enable table reordering
FilamentFFilament / ❓┊help
2y ago
Table filter
FilamentFFilament / ❓┊help
12mo ago
How to access filter values in other filter field in table filter
FilamentFFilament / ❓┊help
6mo ago