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()
->filter(Request::only('search', 'trashed'))
->paginate()
->withQueryString()
->through(function ($contact) {
return [
'id' => $contact->id,

View File

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