F
Filament16mo ago
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?
2 Replies
Homd
HomdOP16mo ago
Damn I search in google with these keyword: "Modify Query Filament" "Modify Table Query Filament" "Filter Query Filament" Nothing points to that documentation. Thanks!
Want results from more Discord servers?
Add your server