We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5563a commit dc6aeb2Copy full SHA for dc6aeb2
src/Support/Serializers/ArraySerializer.php
@@ -26,7 +26,7 @@ class ArraySerializer extends FractalArraySerializer
26
*/
27
public function collection($resourceKey, array $data)
28
{
29
- $paginationDataField = Config::get('response.format.paginated_resource.data_field', 'data');
+ $paginationDataField = Config::get('response.format.fields.data.fields.data', 'data');
30
31
return [$resourceKey ?: $paginationDataField => $data];
32
}
0 commit comments