/** * @param $attribute * @param $value * @param $parameters * @return bool */ public function validate($attribute, $value, $parameters) { //If the email already exist in the account, the validation must fail !! if ($this->userRepository->isEmailExistForThisAccount($this->context->account(), $value)) { return false; } return true; }