ldc-supportweb/app/Exceptions/Handler.php

41 lines
830 B
PHP
Raw Permalink Normal View History

2020-11-18 10:23:51 +01:00
<?php
namespace App\Exceptions;
2022-12-15 09:10:17 +01:00
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
2020-11-18 10:23:51 +01:00
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
2022-03-29 16:57:54 +02:00
];
2020-11-18 10:23:51 +01:00
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
2022-12-15 09:10:17 +01:00
$this->reportable(function (\Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
2020-11-18 10:23:51 +01:00
}
}