diff --git a/src/RequestParameters/SearchParameter.php b/src/RequestParameters/SearchParameter.php index f12f0c4..f8ec935 100644 --- a/src/RequestParameters/SearchParameter.php +++ b/src/RequestParameters/SearchParameter.php @@ -91,7 +91,7 @@ protected function makeQuery(Builder $builder, array $arguments, string $boolOpe continue; } - if ($this->isRelationSearch($key)) { + if ($this->isRelationSearch($key) && !str_contains($key, '!')) { // relation search [$rel, $attr] = explode(self::RELATION_SEPARATOR, $key, 2);