#Get single relation for many to many (polymorphic )

8 messages · Page 1 of 1 (latest)

teal leaf
#

morphTo instead of morphToMany?

lament pivot
opal patio
#

So, what exactly "doesn't work"? You're using a many relation, so that wouldn't return a single role. And if you have a many-to-many, you can just change that to a many-to-one or one-to-one.

lament pivot
opal patio
#

Don't know why you'd use a polymorphic relation for a role tho

lament pivot
lament pivot