Creating Models and Migrations6:04 with Jonathan Barrios
In this section, we’re going to connect our tables to our models using Eloquent relationships for our authors and books inside of the App directory. For example, if an author has several books; then, using an Eloquent relationship allows us to display all of the books by a specific author. Let’s get started.
You need to sign up for Treehouse in order to download course files.Sign up