Always handle the validation exceptions

parent d1b03cd8
...@@ -50,6 +50,10 @@ class Handler extends ExceptionHandler ...@@ -50,6 +50,10 @@ class Handler extends ExceptionHandler
*/ */
public function render($request, Exception $e) public function render($request, Exception $e)
{ {
if ($e instanceof ValidationException) {
return parent::render($request, $e);
}
if (config('app.debug') === false) { if (config('app.debug') === false) {
return $this->handleExceptions($e); return $this->handleExceptions($e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment