Skip to content

Commit f59edbb

Browse files
committed
fix: Included not working
1 parent aeed716 commit f59edbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public static function build(ResponseInterface $response)
3838
if (!empty($included)) {
3939
(new LaravelCollection($included))
4040
->groupBy('type')
41-
->each(function ($items) {
42-
(new Collection($items))->cache();
41+
->each(function (LaravelCollection $items) {
42+
(new Collection($items->all()))->cache();
4343
});
4444
}
4545

0 commit comments

Comments
 (0)