hypothetical/app/Exceptions/Handler.php

31 lines
639 B
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
/**
2023-05-05 15:31:58 -04:00
* The 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
}
}