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
022212f1
"vscode:/vscode.git/clone" did not exist on "020891042fc61baa4386232ea110225407141bc8"
Commit
022212f1
authored
Apr 20, 2022
by
Guilherme Silva
Browse files
Correção no path da paginação
parent
34c52dfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
022212f1
...
...
@@ -95,7 +95,7 @@ class AdministradorController extends Controller
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
);
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