Add laravel sentry debugging package

This commit is contained in:
DariusIII
2022-03-19 11:24:32 +01:00
parent 6a2885f0c6
commit 663ab2f38c
3 changed files with 630 additions and 1 deletions
+14
View File
@@ -26,6 +26,20 @@ class Handler extends ExceptionHandler
'password_confirmation',
];
/**
* Catch errors with Sentry.
*
* @return void
*/
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
/**
* Report or log an exception.
*