From 3e6ae80f25921cfd459fa2b26e5bf113d9bb567e Mon Sep 17 00:00:00 2001 From: Giuseppe Montuoro Date: Sun, 29 Dec 2024 16:11:46 +0100 Subject: [PATCH] Typo --- database/relations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/relations.md b/database/relations.md index 4ea5cd7..9f0146f 100644 --- a/database/relations.md +++ b/database/relations.md @@ -751,7 +751,7 @@ class Supplier extends Model The first array parameter passed to the `$hasOneThrough` property is the name of the final model we wish to access, while the `through` key is the name of the intermediate model. -Typical foreign key conventions will be used when performing the relationship's queries. If you would like to customize the keys of the relationship, you may pass them as the `key`, `otherKey` and `throughKey` parameters to the `$hasManyThrough` definition. The `key` parameter is the name of the foreign key on the intermediate model, the `throughKey` parameter is the name of the foreign key on the final model, while the `otherKey` is the local key. +Typical foreign key conventions will be used when performing the relationship's queries. If you would like to customize the keys of the relationship, you may pass them as the `key`, `otherKey` and `throughKey` parameters to the `$hasOneThrough` definition. The `key` parameter is the name of the foreign key on the intermediate model, the `throughKey` parameter is the name of the foreign key on the final model, while the `otherKey` is the local key. ```php // Property style