Skip to content

Commit f3bee74

Browse files
Add sentry (#120)
* Adds Sentry
1 parent 64f78aa commit f3bee74

File tree

5 files changed

+599
-6
lines changed

5 files changed

+599
-6
lines changed

app/Exceptions/Handler.php

+2-4
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

+1
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
"symfony/http-client": "^7.2",

0 commit comments

Comments
 (0)