From 301eb264ec5e7dd8ec16f913e0935cfbb3d9eec6 Mon Sep 17 00:00:00 2001 From: manavo Date: Mon, 24 Nov 2014 17:38:35 +0000 Subject: [PATCH] Better counting of total (don't convert collection to array) --- app/views/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/index.blade.php b/app/views/index.blade.php index 85ab1be3..51ff5655 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -7,7 +7,7 @@

You're logged in. This will be a link to the Dashboard.

@endif - @if(count($components) > 0) + @if($components->count() > 0)