Fix pagination

This commit is contained in:
Jonathan Reinink 2021-03-01 10:19:46 -05:00
parent 61a2b24d2b
commit a3758546dc
2 changed files with 2 additions and 0 deletions

View file

@ -20,6 +20,7 @@ class ContactsController extends Controller
->orderByName() ->orderByName()
->filter(Request::only('search', 'trashed')) ->filter(Request::only('search', 'trashed'))
->paginate() ->paginate()
->withQueryString()
->through(function ($contact) { ->through(function ($contact) {
return [ return [
'id' => $contact->id, 'id' => $contact->id,

View file

@ -18,6 +18,7 @@ class OrganizationsController extends Controller
->orderBy('name') ->orderBy('name')
->filter(Request::only('search', 'trashed')) ->filter(Request::only('search', 'trashed'))
->paginate() ->paginate()
->withQueryString()
->through(function ($organization) { ->through(function ($organization) {
return [ return [
'id' => $organization->id, 'id' => $organization->id,