File tree Expand file tree Collapse file tree 5 files changed +597
-5
lines changed Expand file tree Collapse file tree 5 files changed +597
-5
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 18
18
"laravel/tinker" : " ^2.8" ,
19
19
"league/commonmark" : " ^2.4" ,
20
20
"livewire/livewire" : " ^3.6" ,
21
+ "sentry/sentry-laravel" : " ^4.13" ,
21
22
"spatie/laravel-menu" : " ^4.1" ,
22
23
"spatie/yaml-front-matter" : " ^2.0" ,
23
24
"symfony/http-client" : " ^7.2" ,
You can’t perform that action at this time.
0 commit comments