Skip to content

Commit 1b282ce

Browse files
committed
formatting
1 parent 71a4bb1 commit 1b282ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent-relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ You may also alias the relationship count result, allowing multiple counts on th
845845

846846
echo $posts[0]->pending_comments_count;
847847

848-
When combining `withCount` with a `select` statement it's important to use `withCount` after the `select` call:
848+
If you're combining `withCount` with a `select` statement, ensure that you call `withCount` after the `select` method:
849849

850850
$query = App\Post::select(['title', 'body'])->withCount('comments');
851851

0 commit comments

Comments
 (0)