changing the way validation works
This commit is contained in:
parent
aa8b160661
commit
3a657e511a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class AccountApiController extends BaseAPIController
|
|||
|
||||
foreach($validator->errors()->all() as $message)
|
||||
{
|
||||
return $this->errorResponse(['message'=>$message]);
|
||||
return $this->errorResponse(['message'=>$message],400);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue