code: public function validatorClosure()
      {
          return function ($attribute, $value, $parameters, BaseValidator $validator) {
              $remoteValidator = new Validator($validator);
              $remoteValidator->validate($value, $parameters);
  
              return $attribute;
          };
      }
docs: Closure used to trigger JsValidations.
  
  @return \Closure