src/Factories/Factory.php
public function createQueryValidator(
        array $data,
        array $rules,
        array $messages = [],
        array $customAttributes = []
    ) {
        return $this->createValidator(
            $data,
            $rules,
            $messages,
            $customAttributes,
            function ($key, $detail, $failed) {
                return $this->invalidQueryParameter($key, $detail, $failed);
            }
        );
    }
public function createQueryValidator(
        array $data,
        array $rules,
        array $messages = [],
        array $customAttributes = []
    ) {
        return $this->createValidator(
            $data,
            $rules,
            $messages,
            $customAttributes,
            function ($key, $detail, $failed) {
                return $this->invalidQueryParameter($key, $detail, $failed);
            }
        );
    }
Create a query validator.

@param array $data
@param array $rules
@param array $messages
@param array $customAttributes
@return ValidatorInterface