diff --git a/app/Support/Resources/CustomPaginatedResourceResponse.php b/app/Support/Resources/CustomPaginatedResourceResponse.php index 8c045d62..40f21c02 100644 --- a/app/Support/Resources/CustomPaginatedResourceResponse.php +++ b/app/Support/Resources/CustomPaginatedResourceResponse.php @@ -9,27 +9,23 @@ class CustomPaginatedResourceResponse extends PaginatedResourceResponse { protected function paginationLinks($paginated) { - return []; + return [ + 'first' => null, + 'last' => null, + 'prev' => null, + 'next' => null, + ]; } protected function meta($paginated) { - $arr = Arr::except($paginated, [ + return Arr::except($paginated, [ 'data', 'first_page_url', 'last_page_url', 'prev_page_url', 'next_page_url', - // 'links', + 'links', ]); - - /*$arr['links'] = [ - 'first' => '', - 'last' => '', - 'next' => '', - 'prev' => ',' - ];*/ - - return $arr; } }