Better counting of total (don't convert collection to array)

This commit is contained in:
manavo
2014-11-24 17:38:35 +00:00
parent 93b0d3af13
commit 301eb264ec

View File

@@ -7,7 +7,7 @@
<p>You're logged in. This will be a link to the Dashboard.</p>
@endif
@if(count($components) > 0)
@if($components->count() > 0)
<div class='page-header'>
<ul class='list-group components'>
@foreach($components as $component)