feat: 整合 Sentry 錯誤監控

安裝 sentry/sentry-laravel,掛載例外捕捉至 bootstrap/app.php。
.env 透過 SENTRY_LARAVEL_DSN 設定,空值時自動停用。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 02:29:00 +08:00
parent 8d41f473e4
commit 3ad5972a5a
3 changed files with 148 additions and 1 deletions
+1 -1
View File
@@ -18,5 +18,5 @@ return Application::configure(basePath: dirname(__DIR__))
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
\Sentry\Laravel\Integration::handles($exceptions);
})->create();