Fix pagination
This commit is contained in:
parent
61a2b24d2b
commit
a3758546dc
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
->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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue