From 1eefbd058c6a83d5a6892c5040ae6246c2ee2ba7 Mon Sep 17 00:00:00 2001 From: Kelly Kiernan Date: Thu, 8 Dec 2016 14:41:58 -0500 Subject: [PATCH] Typo fix --- eloquent-relationships.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eloquent-relationships.md b/eloquent-relationships.md index b19f6e5351..630db61244 100644 --- a/eloquent-relationships.md +++ b/eloquent-relationships.md @@ -628,7 +628,7 @@ If you want to count the number of results from a relationship without actually echo $post->comments_count; } -You may add retrieve the "counts" for multiple relations as well as add constraints to the queries: +You may retrieve the "counts" for multiple relations as well as add constraints to the queries: $posts = Post::withCount(['votes', 'comments' => function ($query) { $query->where('content', 'like', 'foo%');