public function with(array $data, array $rules) {
        $this->validator = $this->factory->make($data, $rules);
    }
public function with(array $data, array $rules) {
        $this->validator = $this->factory->make($data, $rules);
    }
public function with ( array $ data , array $ rules ) { $ this -> validator = $ this -> factory -> make ( $ data , $ rules ) ; }
Sets the data to be validated.

@param array $data
@param array $rules
@return mixed
Sets the data to be validated .