code: private function getRules()
      {
          $rules = [];
          foreach ($this->fields as $field => $extra) {
              if (! key_exists('rules', $extra)) {
                  continue;
              }
              
              $rules[$field] = $extra['rules'];
          }
          
          return $rules;
      }
docs: Get the validation rules that apply to the request.
  
  @return array