File tree 5 files changed +599
-6
lines changed
5 files changed +599
-6
lines changed Original file line number Diff line number Diff line change 3
3
namespace App \Exceptions ;
4
4
5
5
use Illuminate \Foundation \Exceptions \Handler as ExceptionHandler ;
6
+ use Sentry \Laravel \Integration ;
6
7
use Throwable ;
7
8
8
9
class Handler extends ExceptionHandler
@@ -18,13 +19,10 @@ class Handler extends ExceptionHandler
18
19
'password_confirmation ' ,
19
20
];
20
21
21
- /**
22
- * Register the exception handling callbacks for the application.
23
- */
24
22
public function register (): void
25
23
{
26
24
$ this ->reportable (function (Throwable $ e ) {
27
- //
25
+ Integration:: captureUnhandledException ( $ e );
28
26
});
29
27
}
30
28
}
Original file line number Diff line number Diff line change 13
13
"laravel/sanctum" : " ^3.2" ,
14
14
"laravel/tinker" : " ^2.8" ,
15
15
"league/commonmark" : " ^2.4" ,
16
+ "sentry/sentry-laravel" : " ^4.13" ,
16
17
"spatie/laravel-menu" : " ^4.1" ,
17
18
"spatie/yaml-front-matter" : " ^2.0" ,
18
19
"symfony/http-client" : " ^7.2" ,
You can’t perform that action at this time.
0 commit comments