Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
b782393e
Unverified
Commit
b782393e
authored
Apr 20, 2022
by
GuilhermeGz
Committed by
GitHub
Apr 20, 2022
Browse files
Merge pull request #199 from GuilhermeGz/master
Correção de path
parents
7a0acb25
5f38e611
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
b782393e
...
@@ -95,7 +95,7 @@ class AdministradorController extends Controller
...
@@ -95,7 +95,7 @@ class AdministradorController extends Controller
public
function
paginate
(
$items
,
$perPage
=
5
,
$page
=
null
,
$options
=
[])
public
function
paginate
(
$items
,
$perPage
=
5
,
$page
=
null
,
$options
=
[])
{
{
$page
=
$page
?:
(
Paginator
::
resolveC
urrentPage
()
?:
1
);
$page
=
$page
?:
(
Paginator
::
c
urrentPage
()
?:
1
);
$items
=
$items
instanceof
Collection
?
$items
:
Collection
::
make
(
$items
);
$items
=
$items
instanceof
Collection
?
$items
:
Collection
::
make
(
$items
);
return
new
LengthAwarePaginator
(
$items
->
forPage
(
$page
,
$perPage
),
$items
->
count
(),
$perPage
,
$page
,
$options
);
return
new
LengthAwarePaginator
(
$items
->
forPage
(
$page
,
$perPage
),
$items
->
count
(),
$perPage
,
$page
,
$options
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment