silent-auction/app/Exceptions/Handler.php

50 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2018-06-11 13:43:21 -04:00
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
2022-08-06 13:58:30 -04:00
use Throwable;
2018-06-11 13:43:21 -04:00
class Handler extends ExceptionHandler
{
/**
2022-08-06 13:58:30 -04:00
* A list of exception types with their corresponding custom log levels.
2018-06-11 13:43:21 -04:00
*
2022-08-06 13:58:30 -04:00
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
2018-06-11 13:43:21 -04:00
*/
2022-08-06 13:58:30 -04:00
protected $levels = [
//
2018-06-11 13:43:21 -04:00
];
/**
2022-08-06 13:58:30 -04:00
* A list of the exception types that are not reported.
2018-06-11 13:43:21 -04:00
*
2022-08-06 13:58:30 -04:00
* @var array<int, class-string<\Throwable>>
2018-06-11 13:43:21 -04:00
*/
2022-08-06 13:58:30 -04:00
protected $dontReport = [
//
];
2018-06-11 13:43:21 -04:00
/**
2022-08-06 13:58:30 -04:00
* A list of the inputs that are never flashed to the session on validation exceptions.
2018-06-11 13:43:21 -04:00
*
2022-08-06 13:58:30 -04:00
* @var array<int, string>
2018-06-11 13:43:21 -04:00
*/
2022-08-06 13:58:30 -04:00
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
2018-06-11 13:43:21 -04:00
/**
2022-08-06 13:58:30 -04:00
* Register the exception handling callbacks for the application.
2018-06-11 13:43:21 -04:00
*
2022-08-06 13:58:30 -04:00
* @return void
2018-06-11 13:43:21 -04:00
*/
2022-08-06 13:58:30 -04:00
public function register()
2018-06-11 13:43:21 -04:00
{
2022-08-06 13:58:30 -04:00
$this->reportable(function (Throwable $e) {
//
});
2018-06-11 13:43:21 -04:00
}
2022-08-06 13:58:30 -04:00
}