Files
nl-admin-api/app/Exceptions/Handler.php

42 lines
824 B
PHP
Raw Normal View History

<?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
{
2020-08-28 10:06:23 -05:00
/**
* A list of the exception types that are not reported.
*
* @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.
*
* @var array<int, string>
2017-07-19 16:21:03 -05:00
*/
protected $dontFlash = [
'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
}