#One of many on many to many relationship

4 messages · Page 1 of 1 (latest)

twin lodge
#

Hello, Is there any way to have one of many but with a many to many relationship, in other words can i convert ->belongsToMany() to HasOne using ->one() method as example

formal laurel
#

I think this is what you're looking for

twin lodge
#

Thank you, but no this is when you have one-to-many and want one of those many related entities

In my case i want the same but i have many-to-many not one-to-many