File tree Expand file tree Collapse file tree 5 files changed +599
-6
lines changed Expand file tree Collapse file tree 5 files changed +599
-6
lines changed Original file line number Diff line number Diff line change 33namespace App \Exceptions ;
44
55use Illuminate \Foundation \Exceptions \Handler as ExceptionHandler ;
6+ use Sentry \Laravel \Integration ;
67use Throwable ;
78
89class 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}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments