Commit 022212f1 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Correção no path da paginação

parent 34c52dfb
......@@ -95,7 +95,7 @@ class AdministradorController extends Controller
public function paginate($items, $perPage = 5, $page = null, $options = [])
{
$page = $page ?: (Paginator::resolveCurrentPage() ?: 1);
$page = $page ?: (Paginator::currentPage() ?: 1);
$items = $items instanceof Collection ? $items : Collection::make($items);
return new LengthAwarePaginator($items->forPage($page, $perPage), $items->count(), $perPage, $page, $options);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment