ldc-projects-administration/app/Exceptions/Handler.php

31 lines
639 B
PHP
Raw Normal View History

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