Skip to content

Commit

Permalink
fix: resource collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Nov 14, 2023
1 parent a552ca9 commit c924d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function resourceCollection(ResourceCollection $collection): array
{
return [
'data' => $collection->resolve(),
'meta' => $this->formatMeta($collection->resource),
'meta' => array_merge_recursive($this->formatMeta($collection->resource), $collection->with(request()), $collection->additional),
];
}

Expand Down

0 comments on commit c924d22

Please sign in to comment.