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(); ?> -
{{ $incident->message }}
diff --git a/app/views/index.blade.php b/app/views/index.blade.php index 7611615a..88b5913e 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -1,25 +1,31 @@ @extends('layout.master') @section('content') -