In this tutorial, you'll learn how to use one-to-one relationship in Laravel. To set this up we'll only need to add one line of code to each of the 2 classes.
Series: Laravel Eloquent Relationships
In this tutorial, you'll learn how to use One-to-Many relationships in Laravel while building an example app that can associate an author with multiple books.
In this article, you'll learn to create and use a Many-to-Many relationship. As an example we'll build an application that allows students to enroll in courses.
Using Extra Fields in Pivot Table With Laravel belongsToMany
This tutorial will show you how to use a pivot with an extra field to store and access a value, like the quantity of a product in an order.
In this tutorial you'll learn how to use Has-Many-Through in Laravel. Using a practical example I'll show you how to set up and access the relationships.
This blog post will show how to define and query a One-to-Many Polymorphic Relationship. We will build an example that stores comments for posts or videos.