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