From a3758546dcd6a2f897c660aed18ef8eb240e7114 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Mon, 1 Mar 2021 10:19:46 -0500 Subject: [PATCH] Fix pagination --- app/Http/Controllers/ContactsController.php | 1 + app/Http/Controllers/OrganizationsController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Http/Controllers/ContactsController.php b/app/Http/Controllers/ContactsController.php index 2402a34..31b3884 100644 --- a/app/Http/Controllers/ContactsController.php +++ b/app/Http/Controllers/ContactsController.php @@ -20,6 +20,7 @@ class ContactsController extends Controller ->orderByName() ->filter(Request::only('search', 'trashed')) ->paginate() + ->withQueryString() ->through(function ($contact) { return [ 'id' => $contact->id, diff --git a/app/Http/Controllers/OrganizationsController.php b/app/Http/Controllers/OrganizationsController.php index b641cd6..bb1db6b 100644 --- a/app/Http/Controllers/OrganizationsController.php +++ b/app/Http/Controllers/OrganizationsController.php @@ -18,6 +18,7 @@ class OrganizationsController extends Controller ->orderBy('name') ->filter(Request::only('search', 'trashed')) ->paginate() + ->withQueryString() ->through(function ($organization) { return [ 'id' => $organization->id,