1
0
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:
David Bomba 2016-03-13 20:11:45 +11:00
parent 5462e4276a
commit aa8b160661

View File

@ -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]);
}