Commit a3758546 by Jonathan Reinink

Fix pagination

1 parent 61a2b24d
......@@ -20,6 +20,7 @@ class ContactsController extends Controller
->orderByName()
->filter(Request::only('search', 'trashed'))
->paginate()
->withQueryString()
->through(function ($contact) {
return [
'id' => $contact->id,
......
......@@ -18,6 +18,7 @@ class OrganizationsController extends Controller
->orderBy('name')
->filter(Request::only('search', 'trashed'))
->paginate()
->withQueryString()
->through(function ($organization) {
return [
'id' => $organization->id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!