diff --git a/src/QueryBuilderRequest.php b/src/QueryBuilderRequest.php index 74e305d8..c5ffc507 100644 --- a/src/QueryBuilderRequest.php +++ b/src/QueryBuilderRequest.php @@ -38,8 +38,8 @@ public function includes(): Collection $includeParts = $this->getRequestData($includeParameterName); - if (! is_array($includeParts)) { - $includeParts = explode(static::getIncludesArrayValueDelimiter(), $this->getRequestData($includeParameterName)); + if (is_string($includeParts)) { + $includeParts = explode(static::getIncludesArrayValueDelimiter(), $includeParts); } return collect($includeParts)->filter();