jonnybarnes.uk/app/Exceptions/Handler.php

31 lines
639 B
PHP
Raw Normal View History

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