diff options
Diffstat (limited to 'app/Exceptions/Handler.php')
-rw-r--r-- | app/Exceptions/Handler.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 56af264..26fbddf 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -24,7 +24,9 @@ class Handler extends ExceptionHandler public function register(): void { $this->reportable(function (Throwable $e) { - // + if (app()->bound('sentry')) { + app('sentry')->captureException($e); + } }); } } |