photo/app/Exceptions/Handler.php

52 lines
1.0 KiB
PHP
Raw Normal View History

2016-06-20 13:35:59 +00:00
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
2019-11-08 12:08:34 +00:00
* A list of the exception types that are not reported.
2016-06-20 13:35:59 +00:00
*
* @var array
*/
protected $dontReport = [
2019-11-08 12:08:34 +00:00
//
2016-06-20 13:35:59 +00:00
];
/**
2019-11-08 12:08:34 +00:00
* A list of the inputs that are never flashed for validation exceptions.
2016-06-20 13:35:59 +00:00
*
2019-11-08 12:08:34 +00:00
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Report or log an exception.
2016-06-20 13:35:59 +00:00
*
2019-11-08 12:08:34 +00:00
* @param \Exception $exception
2016-06-20 13:35:59 +00:00
* @return void
*/
2019-11-08 12:08:34 +00:00
public function report(Exception $exception)
2016-06-20 13:35:59 +00:00
{
2019-11-08 12:08:34 +00:00
parent::report($exception);
2016-06-20 13:35:59 +00:00
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
2019-11-08 12:08:34 +00:00
* @param \Exception $exception
2016-06-20 13:35:59 +00:00
* @return \Illuminate\Http\Response
*/
2019-11-08 12:08:34 +00:00
public function render($request, Exception $exception)
2016-06-20 13:35:59 +00:00
{
2019-11-08 12:08:34 +00:00
return parent::render($request, $exception);
2016-06-20 13:35:59 +00:00
}
}