code: protected function setRemoteValidation($attribute, $validateAll = false)
      {
          $validator = $this->validator;
          $rules = $validator->getRules();
          $rules = isset($rules[$attribute]) ? $rules[$attribute] : [];
          if (in_array('no_js_validation', $rules)) {
              $validator->setRules([$attribute => []]);
  
              return;
          }
          if (! $validateAll) {
              $rules = $this->purgeNonRemoteRules($rules, $validator);
          }
          $validator->setRules([$attribute => $rules]);
      }
docs: Sets data for validate remote rules.
  
  @param $attribute
  @param bool $validateAll
  @return void