use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Symfony\Component\HttpKernel\Exception\HttpException;
+use Throwable;
class Handler extends ExceptionHandler
{
* @var array
*/
protected $dontFlash = [
+ 'current_password',
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
- * @param Exception $exception
+ * @param \Throwable $exception
*
- * @throws Exception
+ * @throws \Throwable
*
* @return void
*/
- public function report(Exception $exception)
+ public function report(Throwable $exception)
{
parent::report($exception);
}
*
* @return \Illuminate\Http\Response
*/
- public function render($request, Exception $e)
+ public function render($request, Throwable $e)
{
if ($this->isApiRequest($request)) {
return $this->renderApiException($e);