Fix pagination
This commit is contained in:
parent
61a2b24d2b
commit
a3758546dc
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue