Skip to content

Commit a10d1ab

Browse files
committed
adds Sentry
1 parent ed74ed6 commit a10d1ab

File tree

5 files changed

+603
-7
lines changed

5 files changed

+603
-7
lines changed

app/Exceptions/Handler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Exceptions;
44

55
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Sentry\Laravel\Integration;
67
use Throwable;
78

89
class Handler extends ExceptionHandler
@@ -18,13 +19,10 @@ class Handler extends ExceptionHandler
1819
'password_confirmation',
1920
];
2021

21-
/**
22-
* Register the exception handling callbacks for the application.
23-
*/
2422
public function register(): void
2523
{
2624
$this->reportable(function (Throwable $e) {
27-
//
25+
Integration::captureUnhandledException($e);
2826
});
2927
}
3028
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"laravel/sanctum": "^3.2",
1414
"laravel/tinker": "^2.8",
1515
"league/commonmark": "^2.4",
16+
"sentry/sentry-laravel": "^4.13",
1617
"spatie/laravel-menu": "^4.1",
1718
"spatie/yaml-front-matter": "^2.0",
1819
"torchlight/torchlight-commonmark": "^0.5.5"

0 commit comments

Comments
 (0)