Skip to content

Commit

Permalink
Bug fix, fix that validation error messages don't display correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Lin committed Apr 25, 2016
1 parent 4f34bd3 commit d5caa9c
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 d5caa9c

Please sign in to comment.