Fix deployment on Heroku, closes #77

This commit is contained in:
James Brooks
2014-12-29 21:19:32 +00:00
parent df25fc6141
commit 9cf7b141f8

View File

@@ -1,7 +1,9 @@
<?php
$incidentDate = Carbon::now()->subDays($i);
$incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')
->orderBy('created_at', 'desc')->get();
$incidents = Incident::whereBetween('created_at', [
$incidentDate->format('Y-m-d') . ' 00:00:00',
$incidentDate->format('Y-m-d') . ' 23:59:59',
])->orderBy('created_at', 'desc')->get();
?>
<h4>{{ $incidentDate->format('jS F Y') }}</h4>
<div class='timeline'>