diff --git a/src/SearchResultCollection.php b/src/SearchResultCollection.php index 500216d..881d577 100644 --- a/src/SearchResultCollection.php +++ b/src/SearchResultCollection.php @@ -24,6 +24,6 @@ public function groupByType(): Collection public function aspect(string $aspectName): Collection { - return $this->groupByType()->get($aspectName); + return $this->groupByType()->get($aspectName, collect()); } }