url(), '_debugbar') === false) { $queries = DB::getQueryLog(); $count = count($queries); $timeEnd = microtime(true); $time = $timeEnd - $timeStart; //nlog($request->method().' - '.urldecode($request->url()).": $count queries - ".$time); // if($count > 50) //nlog($queries); LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, request()->ip())) ->batch(); } return $response; } }