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)