pingcrm/app/Exceptions/Handler.php

42 lines
824 B
PHP
Raw Normal View History

2019-03-05 18:10:11 -03:00
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
2019-03-05 18:10:11 -03:00
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
2021-12-08 13:59:08 -03:00
* @var array<int, class-string<Throwable>>
2019-03-05 18:10:11 -03:00
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
2021-12-08 13:59:08 -03:00
* @var array<int, string>
2019-03-05 18:10:11 -03:00
*/
protected $dontFlash = [
'current_password',
2019-03-05 18:10:11 -03:00
'password',
'password_confirmation',
];
/**
2020-09-08 19:45:49 -03:00
* Register the exception handling callbacks for the application.
2019-03-05 18:10:11 -03:00
*
* @return void
*/
2020-09-08 19:45:49 -03:00
public function register()
2019-03-05 18:10:11 -03:00
{
$this->reportable(function (Throwable $e) {
//
});
2019-03-05 18:10:11 -03:00
}
}