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
|
|
|
/**
|
|
|
|
* A list of exception types with their corresponding custom log levels.
|
|
|
|
*
|
|
|
|
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
|
|
|
|
*/
|
|
|
|
protected $levels = [
|
|
|
|
//
|
|
|
|
];
|
|
|
|
|
2015-07-08 03:34:58 -04:00
|
|
|
/**
|
2017-09-26 13:22:15 -04:00
|
|
|
* A list of the exception types that are not reported.
|
2015-07-08 03:34:58 -04:00
|
|
|
*
|
2022-05-23 21:01:33 -04:00
|
|
|
* @var array<int, class-string<\Throwable>>
|
2015-07-08 03:34:58 -04:00
|
|
|
*/
|
|
|
|
protected $dontReport = [
|
2017-09-26 13:22:15 -04:00
|
|
|
//
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
2022-05-23 21:01:33 -04:00
|
|
|
* A 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
|
|
|
}
|