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,