Fix the missing links array
This commit is contained in:
@@ -14,7 +14,7 @@ class CustomPaginatedResourceResponse extends PaginatedResourceResponse
|
|||||||
|
|
||||||
protected function meta($paginated)
|
protected function meta($paginated)
|
||||||
{
|
{
|
||||||
return Arr::except($paginated, [
|
$arr = Arr::except($paginated, [
|
||||||
'data',
|
'data',
|
||||||
'first_page_url',
|
'first_page_url',
|
||||||
'last_page_url',
|
'last_page_url',
|
||||||
@@ -22,5 +22,14 @@ class CustomPaginatedResourceResponse extends PaginatedResourceResponse
|
|||||||
'next_page_url',
|
'next_page_url',
|
||||||
'links',
|
'links',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$arr['links'] = [
|
||||||
|
'first' => '',
|
||||||
|
'last' => '',
|
||||||
|
'next' => '',
|
||||||
|
'prev' => ','
|
||||||
|
];
|
||||||
|
|
||||||
|
return $arr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user