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