Filter not apply for the pivot table
I created a filter when I want to filter via the role of my post and this field is located in the pivot table.
I tried to debug and rawSQL in logs looks on, but the application filter doesn't work.
What I possibly did wrong
This is code from UserResource in table() function
Have maybe someone any suggestions for me?
Thanks for advance
1 Reply
I used
whereHas
instead of join
and now it works
inspirations come from https://discord.com/channels/883083792112300104/1315476942451118080/1315476942451118080