getClientIp(), maxAttempts: 3)) { $message = __('http-statuses.' . Response::HTTP_TOO_MANY_REQUESTS, [], 'en'); \abort( new Response($message, Response::HTTP_TOO_MANY_REQUESTS) ); } if ($request->header('authorization') !== config('registry.token_for_notifications')) { RateLimiter::increment(key: 'registry-auth-notification:' . $request->getClientIp(), decaySeconds: 600); throw new \Illuminate\Auth\AuthenticationException(); } return $next($request); } }