From 0a9654e3b8c321c95be3df9c3b55465c2430c345 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 19 Mar 2020 14:53:02 -0600 Subject: [PATCH] Update ApiV1Controller, fix link header pagination --- app/Http/Controllers/Api/ApiV1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 20e47aab..61d8d10f 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1254,7 +1254,7 @@ class ApiV1Controller extends Controller $baseUrl = config('app.url') . '/api/v1/notifications?'; - $link = "<{$baseUrl}max_id={$maxId}>; rel='next',<{$baseUrl}min_id={$minId}>; rel='prev'"; + $link = '<'.$baseUrl.'max_id='.$maxId.'>; rel="next",<'.$baseUrl.'min_id='.$minId.'>; rel="prev"'; return response()->json($res)->withHeaders([ 'Link' => $link,