Skip to content

Commit

Permalink
Merge pull request #193 from dj1020/master
Browse files Browse the repository at this point in the history
Bug fix that validation error messages don't display correctly
  • Loading branch information
Ionut Tanasa committed Apr 26, 2016
2 parents 4f34bd3 + d5caa9c commit a6f52e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class $CONTROLLER$Controller extends Controller
if ($request->wantsJson()) {
return response()->json([
'error' => true,
'message' => $e->getMessage()
'message' => $e->getMessageBag()
]);
}

Expand Down Expand Up @@ -180,7 +180,7 @@ class $CONTROLLER$Controller extends Controller

return response()->json([
'error' => true,
'message' => $e->getMessage()
'message' => $e->getMessageBag()
]);
}

Expand Down

0 comments on commit a6f52e0

Please sign in to comment.