Eloquent Parent Child Relationship in Laravel

Originally published at: Eloquent Parent Child Relationship in Laravel - Server Side Up

This tutorial will show how to do a parent/child relationship on the same model, in the same database. What we will be doing is expanding our data for adding cafes by allowing the user to add multiple locations for each cafe. These should be stored as an individual record in the cafes table. This will…

We migrated this post from Disqus to Discourse. Here is a screenshot of the previous comments for reference: