class SetRequestIpMiddleware

Enrich the Sentry scope with the IP address of the request.

We do this instead of letting the PHP SDK handle it because we want the IP from the Hypervel request which takes trusted proxies into account.

Methods

Response
handle(Request $request, Closure $next)

Handle an incoming request.

Details

at line 25
Response handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

Response