Skip to content

Commit

Permalink
setup sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed May 3, 2024
1 parent e49c035 commit 59783d0
Show file tree
Hide file tree
Showing 7 changed files with 530 additions and 69 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ BACKUP_S3_BUCKET=
BACKUP_S3_URL=

FATHOM_SITE_ID=

SENTRY_PHP_DSN=
5 changes: 4 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Session\Middleware\AuthenticateSession;
use Sentry\Laravel\Integration as Sentry;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
Expand All @@ -17,5 +18,7 @@

$middleware->redirectUsersTo('/people');
})
->withExceptions(function (Exceptions $exceptions) { })
->withExceptions(function (Exceptions $exceptions) {
Sentry::handles($exceptions);
})
->create();
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"league/flysystem-aws-s3-v3": "^3.27",
"livewire/livewire": "^3.4",
"nesbot/carbon": "^3.2",
"sentry/sentry-laravel": "^4.5",
"spatie/laravel-activitylog": "dev-fix-tapping#9d38653",
"spatie/laravel-backup": "^8.6",
"spatie/laravel-flash": "^1.10",
Expand Down

0 comments on commit 59783d0

Please sign in to comment.