The simple paginator does not need to know the total number of items in the result set; however, because of this, the class does not return the URI of the last page.
Ironically, the simple paginator is more work using this library. To save on queries you should skip using the methodsimplePaginate, and implement the skip/take logic yourself.
$page = $request->get('page');
$perPage = 20;
// Take one more than needed to see if there is a next page$users = User::skip(($page - 1) * $perPage)
->take($perPage + 1);
$paginator = newPaginator($simple, $items);