add sentry

This commit is contained in:
Benjamin Takats
2022-12-02 10:59:44 +01:00
parent ce7319cc63
commit b0b5b0a980
3 changed files with 1063 additions and 2 deletions

View File

@@ -44,7 +44,9 @@ class Handler extends ExceptionHandler
public function register()
{
$this->reportable(function (Throwable $e) {
//
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
}