Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SosoRicsi's avatar

SosoRicsi liked a comment+100 XP

4mos ago

Eloquent Relationships Deep Dive: Ep 1, One-to-One Relationships

@SosoRicsi that would be more like parents-children but I see your point

SosoRicsi's avatar

SosoRicsi wrote a comment+100 XP

5mos ago

Eloquent Relationships Deep Dive: Ep 1, One-to-One Relationships

In my opinion the parent - child example is very bad. One child has two parents. Parents can have multiple kids. So its a many to many relationship. Except if you tka the two parents and split them (a mom and a dad). Than it's a one to many relationship, for the sam reason: one mom can have multiple children.

  • Sorry for bad grammar