From cceceac77a7bce961c7a64a9b80cddcdbb655a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rams=C3=A9s=20Moreno?= Date: Fri, 8 Mar 2019 20:33:04 -0600 Subject: [PATCH] Update 05-Relationships.adoc --- 08-Lucid-ORM/05-Relationships.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/08-Lucid-ORM/05-Relationships.adoc b/08-Lucid-ORM/05-Relationships.adoc index d5b07d2..450889c 100644 --- a/08-Lucid-ORM/05-Relationships.adoc +++ b/08-Lucid-ORM/05-Relationships.adoc @@ -677,6 +677,8 @@ const posts = await Post .fetch() ---- +NOTE: In a whereHas closure, you can also filter the result using fields in the pivot table used in a many to many relation. + ==== doesntHave The opposite of the `has` clause: