Skip to content

Commit 536fa9d

Browse files
committed
Re-register exception handling
1 parent c083f90 commit 536fa9d

File tree

2 files changed

+5
-51
lines changed

2 files changed

+5
-51
lines changed

app/Exceptions/Handler.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

bootstrap/app.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@
2323
$middleware->throttleApi();
2424
})
2525
->withExceptions(function (Exceptions $exceptions) {
26-
//
26+
$exceptions->reportable(function (Throwable $e) {
27+
if (app()->bound('sentry')) {
28+
app('sentry')->captureException($e);
29+
}
30+
});
2731
})->create();

0 commit comments

Comments
 (0)