Unverified Commit b782393e authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #199 from GuilhermeGz/master

Correção de path
parents 7a0acb25 5f38e611
......@@ -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