code: protected function generateJavascriptValidations()
      {
          $jsValidations = [];
  
          foreach ($this->validator->getRules() as $attribute => $rules) {
              if (! $this->jsValidationEnabled($attribute)) {
                  continue;
              }
  
              $newRules = $this->jsConvertRules($attribute, $rules, $this->remote);
              $jsValidations = array_merge($jsValidations, $newRules);
          }
  
          return $jsValidations;
      }
docs: Generate Javascript Validations.
  
  @return array