Add email to user

This commit is contained in:
Andras Bacsai 2023-09-11 22:45:07 +02:00
parent 2c9983046c
commit 9cda671aef

View File

@ -50,8 +50,13 @@ class Handler extends ExceptionHandler
return; return;
} }
app('sentry')->configureScope( app('sentry')->configureScope(
function (Scope $scope){ function (Scope $scope) {
$scope->setUser(['id'=> config('sentry.server_name')]); $scope->setUser(
[
'id' => config('sentry.server_name'),
'email' => auth()->user()->email
]
);
} }
); );
Integration::captureUnhandledException($e); Integration::captureUnhandledException($e);