code: protected function createValidator($translator, $data, $rules, $messages, $customAttributes)
      {
          if (is_null($this->resolver)) {
              return new BaseValidator($translator, $data, $rules, $messages, $customAttributes);
          }
  
          return call_user_func($this->resolver, $translator, $data, $rules, $messages, $customAttributes);
      }
docs: Create new validator instance.
  
  @param $translator
  @param $data
  @param $rules
  @param $messages
  @param $customAttributes
  @return \Illuminate\Validation\Validator