We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c083f90 commit 536fa9dCopy full SHA for 536fa9d
app/Exceptions/Handler.php
bootstrap/app.php
@@ -23,5 +23,9 @@
23
$middleware->throttleApi();
24
})
25
->withExceptions(function (Exceptions $exceptions) {
26
- //
+ $exceptions->reportable(function (Throwable $e) {
27
+ if (app()->bound('sentry')) {
28
+ app('sentry')->captureException($e);
29
+ }
30
+ });
31
})->create();
0 commit comments