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 62e7f0f commit c7269efCopy full SHA for c7269ef
app/Exceptions/Handler.php
@@ -8,6 +8,7 @@
8
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
9
use Illuminate\Session\TokenMismatchException;
10
use Illuminate\Validation\ValidationException;
11
+use Sentry\Laravel\Integration;
12
use Symfony\Component\HttpKernel\Exception\HttpException;
13
use Throwable;
14
@@ -44,9 +45,7 @@ class Handler extends ExceptionHandler
44
45
public function register(): void
46
{
47
$this->reportable(function (Throwable $e) {
- if (app()->bound('sentry')) {
48
- app('sentry')->captureException($e);
49
- }
+ Integration::captureUnhandledException($e);
50
});
51
}
52
0 commit comments