From 0283537c9a9729619d895c062679213a6c83c33f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Jun 2023 18:28:57 +1000 Subject: [PATCH] Refactor for exception handler --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 9feccc7bca55..c551b6d38306 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -105,7 +105,7 @@ class Handler extends ExceptionHandler if($exception instanceof ThrottleRequestsException && class_exists(\Modules\Admin\Events\ThrottledExceptionRaised::class)) { $uri = urldecode(request()->getRequestUri()); - event(new \Modules\Admin\Events\ThrottledExceptionRaised(auth()->user()?->account?->key, $uri)); + event(new \Modules\Admin\Events\ThrottledExceptionRaised(auth()->user()?->account?->key, $uri, request()->ip())); } Integration::configureScope(function (Scope $scope): void {