Commit 0d87b1c0 by 庄欣

fix bug

parent d293ce2f
......@@ -47,7 +47,7 @@ class Photo extends \Illuminate\Routing\Controller
$post = $request->all();
$validator = new PhotoValidator();
$res = $validator->validate($post);
if ($res->fails()) {
if ($res == false) {
$messages = $validator->getMessages();
return Response::error($messages,HttpStatus::HttpValidationFailed);
}
......
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