2015-06-01 15:43:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Exceptions;
|
2014-11-18 22:48:38 -06:00
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
2020-11-14 09:17:41 -06:00
|
|
|
use Throwable;
|
2014-11-18 22:48:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
class Handler extends ExceptionHandler
|
|
|
|
|
{
|
2022-04-12 09:30:44 -05:00
|
|
|
/**
|
2022-04-12 09:31:23 -05:00
|
|
|
* A list of exception types with their corresponding custom log levels.
|
2022-04-12 09:30:44 -05:00
|
|
|
*
|
|
|
|
|
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
|
|
|
|
|
*/
|
|
|
|
|
protected $levels = [
|
|
|
|
|
//
|
|
|
|
|
];
|
|
|
|
|
|
2020-08-28 10:06:23 -05:00
|
|
|
/**
|
|
|
|
|
* A list of the exception types that are not reported.
|
|
|
|
|
*
|
2021-12-03 15:04:57 +00:00
|
|
|
* @var array<int, class-string<Throwable>>
|
2020-08-28 10:06:23 -05:00
|
|
|
*/
|
|
|
|
|
protected $dontReport = [
|
|
|
|
|
//
|
|
|
|
|
];
|
|
|
|
|
|
2017-07-19 16:21:03 -05:00
|
|
|
/**
|
|
|
|
|
* A list of the inputs that are never flashed for validation exceptions.
|
|
|
|
|
*
|
2021-12-03 15:04:57 +00:00
|
|
|
* @var array<int, string>
|
2017-07-19 16:21:03 -05:00
|
|
|
*/
|
|
|
|
|
protected $dontFlash = [
|
2021-02-19 16:09:51 +01:00
|
|
|
'current_password',
|
2017-07-19 16:21:03 -05:00
|
|
|
'password',
|
|
|
|
|
'password_confirmation',
|
|
|
|
|
];
|
|
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
2020-07-14 10:10:03 -05:00
|
|
|
* Register the exception handling callbacks for the application.
|
2015-02-22 20:47:03 -06:00
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2020-07-14 10:10:03 -05:00
|
|
|
public function register()
|
2015-02-22 20:47:03 -06:00
|
|
|
{
|
2020-11-14 09:17:41 -06:00
|
|
|
$this->reportable(function (Throwable $e) {
|
|
|
|
|
//
|
|
|
|
|
});
|
2015-02-22 20:47:03 -06:00
|
|
|
}
|
2014-11-18 22:48:38 -06:00
|
|
|
}
|