Skip to content

Commit d88d8dc

Browse files
committed
🐛 collection to array
1 parent ace8006 commit d88d8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function modelToResponse(Model $model, Resource $resource, array $request
3535
->only(
3636
array_merge(
3737
isset($requestArray['selects']) ?
38-
collect($requestArray['selects'])->pluck('field') :
38+
collect($requestArray['selects'])->pluck('field')->toArray() :
3939
$resource->exposedFields(app()->make(RestRequest::class)),
4040
// Here we add the aggregates
4141
collect($requestArray['aggregates'] ?? [])

0 commit comments

Comments
 (0)