Add email to user
This commit is contained in:
parent
2c9983046c
commit
9cda671aef
1 changed files with 7 additions and 2 deletions
|
|
@ -50,8 +50,13 @@ public function register(): void
|
||||||
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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue