pr($rows); echo "Report Success"; } else { echo "No Report Complete"; } die; }); Route::get('updateReport', function () { $date = Input::get('date', ''); $hour = Input::get('hour', ''); $arrHour = array(); $tracking = new RawTrackingSummary(); if ('' != $date) { if ('' != $hour) { $created_h = strtotime("{$date} {$hour}:00:00"); if ($rows = $tracking->updateReportHour($created_h)) { echo "Report Success: " . $rows; } else { echo "No Report Complete"; } } else { $created = strtotime($date); if ($rows = $tracking->reportScheduleDaily($created)) { echo "Report Success: " . $rows; } else { echo "No Report Complete"; } } } die; });