HasManyThrough repeater relation
I am having the following problem where I want to show results in a repeater from a hasManyThroug relation
Transport Route
id
Transport Order
id
transport Route Id
...
Transport Stop
id
transport order id
...
I want to retrieve the stops in a repeater so I have a draggable list to let the user sort its desirered order for the stops. The has many through relation works on a relationmanager but not in the repeater because it only accepts HasOneOrMany or BelongsToMany
Is there a way arround this to display all stops in the transport route resource?
2 Replies
wrap the repeater in a group or other layout component with ->relationship() ?
then the group assigns the hasone/belongsto and then the repeater has a more simple relationship like hasmany
awesome will try