protected function getValidator($data)
 {
     return Factory::make($data, $this->request->rules());
 }
 /**
  * Get the validator instance for the request.
  *
  * @return \Illuminate\Contracts\Validation\Validator
  */
 protected function getValidatorInstance()
 {
     $validator = Factory::make($this->all(), $this->rules(), $this->messages(), $this->attributes());
     return $validator;
 }