Files
growup-crm/app/Exceptions/Handler.php
Cauê Faleiros 79ee93d48c
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 48s
feat(monitoring): integrate sentry with tenant context and gitea actions
2026-02-18 09:55:41 -03:00

32 lines
696 B
PHP

<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Sentry\Laravel\Integration;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*/
public function register(): void
{
$this->reportable(function (Throwable $e) {
Integration::captureUnhandledException($e);
});
}
}