Skip to content

Commit

Permalink
Always handle the validation exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Jul 27, 2017
1 parent d1b03cd commit 8cf4ec9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public function report(Exception $e)
*/
public function render($request, Exception $e)
{
if ($e instanceof ValidationException) {
return parent::render($request, $e);
}

if (config('app.debug') === false) {
return $this->handleExceptions($e);
}
Expand Down

0 comments on commit 8cf4ec9

Please sign in to comment.