Skip to content

Commit

Permalink
install sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Mar 19, 2023
1 parent df88ca1 commit 26e3539
Show file tree
Hide file tree
Showing 4 changed files with 1,571 additions and 202 deletions.
3 changes: 2 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Exceptions;

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Sentry\Laravel\Integration;
use Throwable;

class Handler extends ExceptionHandler
Expand Down Expand Up @@ -42,7 +43,7 @@ class Handler extends ExceptionHandler
public function register(): void
{
$this->reportable(function (Throwable $e) {
//
Integration::captureUnhandledException($e);
});
}
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"laravel/octane": "^1.4",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"league/oauth2-client": "^2.6"
"league/oauth2-client": "^2.6",
"sentry/sentry-laravel": "^3.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.8",
Expand Down
Loading

0 comments on commit 26e3539

Please sign in to comment.