diff --git a/src/Repositories/Repository.php b/src/Repositories/Repository.php index 002e1ac55..64a796d74 100644 --- a/src/Repositories/Repository.php +++ b/src/Repositories/Repository.php @@ -522,7 +522,7 @@ public function resolveRelationships($request): array } $withs[$relation] = $paginator instanceof Collection - ? $paginator->map(fn(Model $item) => [ + ? $paginator->map(fn (Model $item) => [ 'attributes' => $item->toArray(), ]) : $paginator->toArray();