2015-07-08 03:34:58 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Exceptions;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
2020-04-23 22:17:13 -04:00
|
|
|
use Throwable;
|
2015-07-08 03:34:58 -04:00
|
|
|
|
|
|
|
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.
|
2017-09-26 13:22:15 -04:00
|
|
|
*
|
2022-05-23 21:01:33 -04:00
|
|
|
* @var array<int, string>
|
2017-09-26 13:22:15 -04:00
|
|
|
*/
|
|
|
|
protected $dontFlash = [
|
2021-04-20 17:11:13 -04:00
|
|
|
'current_password',
|
2017-09-26 13:22:15 -04:00
|
|
|
'password',
|
|
|
|
'password_confirmation',
|
2015-07-08 03:34:58 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
2020-12-09 16:00:01 -05:00
|
|
|
* Register the exception handling callbacks for the application.
|
2015-07-08 03:34:58 -04:00
|
|
|
*/
|
2023-03-13 17:33:19 -04:00
|
|
|
public function register(): void
|
2015-07-08 03:34:58 -04:00
|
|
|
{
|
2020-12-09 16:00:01 -05:00
|
|
|
$this->reportable(function (Throwable $e) {
|
|
|
|
//
|
|
|
|
});
|
2016-08-19 16:38:49 -04:00
|
|
|
}
|
2015-07-08 03:34:58 -04:00
|
|
|
}
|