Laravel 9 Update (#1413)
Update to Laravel 9 and PHP 8+ Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ class CustomPaginatedResourceResponse extends PaginatedResourceResponse
|
||||
|
||||
protected function meta($paginated)
|
||||
{
|
||||
return Arr::except($paginated, [
|
||||
$arr = Arr::except($paginated, [
|
||||
'data',
|
||||
'first_page_url',
|
||||
'last_page_url',
|
||||
@@ -27,5 +27,10 @@ class CustomPaginatedResourceResponse extends PaginatedResourceResponse
|
||||
'next_page_url',
|
||||
'links',
|
||||
]);
|
||||
|
||||
$arr['prev_page'] = $paginated['prev_page_url'];
|
||||
$arr['next_page'] = $paginated['next_page_url'];
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user