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