From 7ef95ca3aabcaa416581114f6d278d3bb35d456d Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 17 Nov 2014 00:10:02 +0000 Subject: [PATCH] Include changes required within View Composers --- app/start/global.php | 2 ++ app/views/incident.blade.php | 10 ++++---- app/views/index.blade.php | 44 ++++++++++++++++++++---------------- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/app/start/global.php b/app/start/global.php index 82ab9ba4..6c3c8cb5 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -79,3 +79,5 @@ App::down(function() */ require app_path().'/filters.php'; + +require app_path().'/view-composers.php'; diff --git a/app/views/incident.blade.php b/app/views/incident.blade.php index 319e778a..08602881 100644 --- a/app/views/incident.blade.php +++ b/app/views/incident.blade.php @@ -1,15 +1,15 @@ subDays($i); - $incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')->get(); + $incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')->orderBy('created_at', 'desc')->get(); ?> -
  • +
  • {{ $incidentDate->format('jS M, Y') }}

    -