hypothetical/app/Exceptions/Handler.php

49 lines
1 KiB
PHP
Raw Normal View History

<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
2022-05-23 21:01:33 -04:00
/**
* A list of exception types with their corresponding custom log levels.
*
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
*/
protected $levels = [
//
];
/**
* A list of the exception types that are not reported.
*
2022-05-23 21:01:33 -04:00
* @var array<int, class-string<\Throwable>>
*/
protected $dontReport = [
//
];
/**
2022-05-23 21:01:33 -04:00
* A list of the inputs that are never flashed to the session on validation exceptions.
*
2022-05-23 21:01:33 -04:00
* @var array<int, string>
*/
protected $dontFlash = [
2021-04-20 17:11:13 -04:00
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*/
2023-03-13 17:33:19 -04:00
public function register(): void
{
$this->reportable(function (Throwable $e) {
//
});
2016-08-19 16:38:49 -04:00
}
}