© 2026 Hedgehog Software, LLC

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

Modify Query Used in A Resource Page

I am a noob. I think this question already exist somehwere else but I couldn't find it.

I have a User model that has 2 resource page

The first resource page should only list user that has "admin" object

The second resource page should only list user that has "student" object

As for now, both the resource page is listing User::all()

I want to be able to change the query used in each page, is there a way?
Solution
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
Listing records - Panel Builder - Filament
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

Modify query in Resource if not searching
FilamentFFilament / ❓┊help
2y ago
modify resource breadcrumbs
FilamentFFilament / ❓┊help
3y ago
Extend a Resource List Page in another Resource Custom page
FilamentFFilament / ❓┊help
3y ago
Multiple Forms in a Resource Page
FilamentFFilament / ❓┊help
2y ago