/**
  *  Gets view data.
  *
  * @return array
  */
 protected function getViewData()
 {
     $data = $this->validator->validationData($this->remote);
     $data['selector'] = $this->selector;
     if (!is_null($this->ignore)) {
         $data['ignore'] = $this->ignore;
     }
     return $data;
 }
 /**
  * Validate Conditional Validations using Ajax in specified fields.
  *
  * @param  string  $attribute
  * @param  string|array  $rules
  * @return JavascriptValidator
  */
 public function sometimes($attribute, $rules)
 {
     $this->validator->sometimes($attribute, $rules);
     return $this;
 }