Fix the missing links array

This commit is contained in:
Nabeel Shahzad 2021-06-10 08:46:56 -04:00
parent 3a0140c2d0
commit a8e6f1191b

View File

@ -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;
}
}