Add email to user
This commit is contained in:
		@@ -51,7 +51,12 @@ class Handler extends ExceptionHandler
 | 
			
		||||
            }
 | 
			
		||||
            app('sentry')->configureScope(
 | 
			
		||||
                function (Scope $scope) {
 | 
			
		||||
                    $scope->setUser(['id'=> config('sentry.server_name')]);
 | 
			
		||||
                    $scope->setUser(
 | 
			
		||||
                        [
 | 
			
		||||
                            'id' => config('sentry.server_name'),
 | 
			
		||||
                            'email' => auth()->user()->email
 | 
			
		||||
                        ]
 | 
			
		||||
                    );
 | 
			
		||||
                }
 | 
			
		||||
            );
 | 
			
		||||
            Integration::captureUnhandledException($e);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user