diff --git a/src/Support/Format.php b/src/Support/Format.php index d5f106f..b9c5c83 100644 --- a/src/Support/Format.php +++ b/src/Support/Format.php @@ -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), ]; }