How to use deep relations in filters in the V3 Table Builder?
Is there a way to use deep relations in filters in V3? I have the following relation:
News => belongsToMany => players => belongsTo => playerCategory
Which is defined in the News Model like this (and works):
I want to add a Filter for playerCategories in the News table builder component. I tried this:
And got this error:
Does anyone know how to achieve this? Thanks
News => belongsToMany => players => belongsTo => playerCategory
Which is defined in the News Model like this (and works):
I want to add a Filter for playerCategories in the News table builder component. I tried this:
And got this error:
Does anyone know how to achieve this? Thanks
Solution
I don't think
You have to provide
->relationship() supports HasManyDeepYou have to provide
->options() & ->query() manually