url(), '_debugbar') === false) { $queries = DB::getQueryLog(); $count = count($queries); $timeEnd = microtime(true); $time = $timeEnd - $timeStart; if($count > 250){ nlog("Quer count = {$count}"); nlog($queries); } $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; } }