© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
Hich

multiple resources based on same model

i have a users table with a role field.
I want to have two resources clients and admins that both use the same table users but with a filter for the role field.
how do i achieve this?
Solution
You can use
->modifyQueryUsing()
->modifyQueryUsing()
and apply differently per resource 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

same model policy: multiple resources
FilamentFFilament / ❓┊help
2y ago
Using same model for multiple resources
FilamentFFilament / ❓┊help
16mo ago
Multiple resources using same model not working
FilamentFFilament / ❓┊help
12mo ago
Multiple Resources per Model
FilamentFFilament / ❓┊help
2y ago