How to filter Filament table by nested relationship?

The structure of tables are like this: acc->user->role
now I'm in acc resource and I want to filter the rows based on user roles. How can I do that?
Was this page helpful?