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:Jump to solution
You can use
->modifyQueryUsing()
and apply differently per resource https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query1 Reply
Solution
You can use
->modifyQueryUsing()
and apply differently per resource https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query