From da9b18a857d200b107ebb06a7765e53171f20127 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 14 Aug 2018 14:47:35 -0500 Subject: [PATCH] formatting --- eloquent-relationships.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eloquent-relationships.md b/eloquent-relationships.md index 2bcd01b6e..bf4158fff 100644 --- a/eloquent-relationships.md +++ b/eloquent-relationships.md @@ -325,7 +325,7 @@ You can also filter the results returned by `belongsToMany` using the `wherePivo #### Defining Custom Intermediate Table Models -If you would like to define a custom model to represent the intermediate table of your relationship, you may call the `using` method when defining the relationship. Many to Many relationships should extend `Illuminate\Database\Eloquent\Relations\Pivot` and Many To Many Polymorphic relationships the `Illuminate\Database\Eloquent\Relations\MorphPivot` class. For example, we may define a `Role` which uses a custom `UserRole` pivot model: +If you would like to define a custom model to represent the intermediate table of your relationship, you may call the `using` method when defining the relationship. Custom many-to-many pivot models should extend the `Illuminate\Database\Eloquent\Relations\Pivot` class while custom polymorphic many-to-many pivot models should extend the `Illuminate\Database\Eloquent\Relations\MorphPivot` class. For example, we may define a `Role` which uses a custom `UserRole` pivot model: