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: