backend registration step 1

This commit is contained in:
CheeSiong
2020-10-24 10:31:52 +08:00
parent ec4dc051eb
commit eac5ffda7b
48 changed files with 8960 additions and 4 deletions
@@ -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;