Commit a3758546 by Jonathan Reinink

Fix pagination

1 parent 61a2b24d
...@@ -20,6 +20,7 @@ class ContactsController extends Controller ...@@ -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,
......
...@@ -18,6 +18,7 @@ class OrganizationsController extends Controller ...@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!