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 dc6aeb2 commit 038acffCopy full SHA for 038acff
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.fields.data.fields.data', 'data');
+ $paginationDataField = Config::get('response.format.fields.data.fields.data.alias', 'data');
30
31
return [$resourceKey ?: $paginationDataField => $data];
32
}
0 commit comments