From 05931eb3243b48cb5184e17a7106d3e0d957b5c3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 5 Sep 2016 08:24:41 +0300 Subject: [PATCH] Reduce extra queries --- app/Http/Controllers/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 209e88b0c0dc..cd298f26c245 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -115,7 +115,7 @@ class DashboardController extends BaseController } $activities = $activities->orderBy('activities.created_at', 'desc') - ->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account') + ->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account', 'task') ->take(50) ->get();