url(), '_debugbar') === false) { $queries = DB::getQueryLog(); $count = count($queries); $timeEnd = microtime(true); $time = $timeEnd - $timeStart; // if($count > 150) // nlog($queries); info(print_r($queries,1)); $ip = ''; if(request()->header('Cf-Connecting-Ip')) $ip = request()->header('Cf-Connecting-Ip'); else{ $ip = request()->ip(); } LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, $ip)) ->batch(); } return $response; } }