mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 23:43:58 +00:00
backend registration step 1
This commit is contained in:
@@ -29,7 +29,6 @@ abstract class AbstractValidation
|
||||
|
||||
abstract protected function messages(): array;
|
||||
|
||||
|
||||
/**
|
||||
* @param DataTransferObject $object
|
||||
* @return bool
|
||||
@@ -39,8 +38,8 @@ abstract class AbstractValidation
|
||||
|
||||
$validator = $this->validator::make($this->data($object), $this->rules(), $this->messages());
|
||||
|
||||
if($validator->fails()){
|
||||
throw new RequestValidationException($validator->messages()->first());
|
||||
if($validator->fails()) {
|
||||
throw new RequestValidationException($validator->messages());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user