π³ Eloquent Family Tree
Connect the Models! π
Pick the right Eloquent relationship β hasMany, belongsTo, hasOne, or belongsToMany β and watch a colourful rope appear between the cards!
0
/
0
π³
Hi! I'm Rooty. Let's connect the family!
Level 1
Blog Basics
β¦ Task 1 of 4
π
Level complete!
You connected every model.
π hasMany = a parent owns many children Β· belongsTo = a child knows its parent Β· hasOne = exactly one Β· belongsToMany = both sides have many (via a pivot table)