url) ->where('method', $httpLog->method); $pastDays = Input::get('pastDays', session('profilerPastDays', 0)); if (is_numeric($pastDays) && $pastDays >= 0) { $sameRequests = $sameRequests->where('created_at', '>=', Carbon::today() ->subDays($pastDays)); } session(['profilerPastDays' => $pastDays]); $sameRequests = $sameRequests->get(); $times = [ 'avg' => $sameRequests->avg('time'), 'min' => $sameRequests->min('time'), 'max' => $sameRequests->max('time') ]; $filter = Input::all(); return view('profiler::request.detail', compact('httpLog', 'sameRequests', 'times', 'pastDays', 'filter')); } }