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