From 8b83f67cc4a7064bb1dc313e76d869a81d87efcc Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 20 Sep 2016 14:57:44 +0300 Subject: [PATCH] Show validaton error when failed to reset password --- app/Exceptions/Handler.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index f7c818efde..9dfadde1b7 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -10,7 +10,8 @@ use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Illuminate\Validation\ValidationException; +use Illuminate\Foundation\Validation\ValidationException; + /** * Class Handler @@ -84,7 +85,8 @@ class Handler extends ExceptionHandler // In production, except for maintenance mode, we'll show a custom error screen if (Utils::isNinjaProd() && !Utils::isDownForMaintenance() - && !($e instanceof HttpResponseException)) { + && !($e instanceof HttpResponseException) + && !($e instanceof ValidationException)) { $data = [ 'error' => get_class($e), 'hideHeader' => true,