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
|
|
|
|
{
|
|
|
|
/**
|
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
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $dontReport = [
|
2017-09-26 13:22:15 -04:00
|
|
|
//
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A list of the inputs that are never flashed for validation exceptions.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
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
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2020-12-09 16:00:01 -05:00
|
|
|
public function register()
|
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
|
|
|
}
|