Search in relationship from main model
I have a order resource, and the order model has orderProducts, hasMany, i want to be able to search in the order.orderProducts.name variable in the table of the order resource, how can i achieve this?
7 Replies
Did you try it with
order.orderProducts.name
already?Then it does this
Okay. Thought it might be supported out of the box π
Shouldn't it be
orderProducts.name
?You could custimize the query:
make it work like that?