FilamentF
Filament3y 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?
Was this page helpful?