Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a3758546
authored
Mar 01, 2021
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pagination
1 parent
61a2b24d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
app/Http/Controllers/ContactsController.php
app/Http/Controllers/OrganizationsController.php
app/Http/Controllers/ContactsController.php
View file @
a375854
...
@@ -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
,
...
...
app/Http/Controllers/OrganizationsController.php
View file @
a375854
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment