From d9346bfadf5109199e9ca4bbfc9cc9fd61c11e08 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 13 Mar 2016 23:52:02 +1100 Subject: [PATCH] re-working validation --- app/Http/Requests/RegisterRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/RegisterRequest.php b/app/Http/Requests/RegisterRequest.php index 60d046cb18..91a2755692 100644 --- a/app/Http/Requests/RegisterRequest.php +++ b/app/Http/Requests/RegisterRequest.php @@ -47,11 +47,11 @@ class RegisterRequest extends Request public function response(array $errors) { - /* If the user is not validating from a mobile app - pass through parent::response*/ + /* If the user is not validating from a mobile app - pass through parent::response */ if(!isset($this->req->api_secret)) return parent::response($errors); - /* If the user is validating from a mobile app - pass through first error string and return error*/ + /* If the user is validating from a mobile app - pass through first error string and return error */ foreach($errors as $error) { foreach ($error as $key => $value) {