Skip to content

Commit

Permalink
add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Aug 25, 2023
1 parent dc3db5c commit f34aa66
Show file tree
Hide file tree
Showing 3 changed files with 1,237 additions and 103 deletions.
4 changes: 3 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class Handler extends ExceptionHandler
public function register(): void
{
$this->reportable(function (Throwable $e) {
//
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"pusher/pusher-php-server": "^7.2",
"sentry/sentry-laravel": "^3.7",
"spatie/laravel-activitylog": "^4.7",
"spatie/laravel-settings": "^3.2",
"tightenco/ziggy": "^1.0"
Expand Down
Loading

0 comments on commit f34aa66

Please sign in to comment.