$days = Input::get('d', 0); $perRequest = 5; for ($i = 0; $i < $perRequest; $i++) { $j = $days + $i; pr(date('d-m-Y', strtotime("-{$j} days"))); $a->reportScheduleDaily(strtotime("-{$j} days")); } $days += $perRequest; return Redirect::to(URL::to('remonth?d=' . $days)); }); Route::get('hour', function () { // return ''; // pr( Cache::get('Report:Schedule') ); $cacheKey = "Report_Schedule_Hourly"; $cacheField = "hourly_1"; RedisHelper::hdel($cacheKey, $cacheField); $tracking = new RawTrackingSummary(); if ($rows = $tracking->reportScheduleHourly()) { // $cacheKey = "Report:Schedule"; // Cache::forget($cacheKey); pr($rows); echo "Report Success"; } else { echo "No Report Complete"; } die; }); Route::get('today', function () { $a = new RawTrackingSummary(); pr($a->reportScheduleDaily(time())); });