mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
changing the way validation works
This commit is contained in:
parent
5462e4276a
commit
aa8b160661
@ -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…
Reference in New Issue
Block a user