I found this reply this for a similar question: Laravel 5 - Manual pagination
what is not clear now to me is how to make the front page workin with the classic {{$items->links()}}
on blade template.
my controller's code is:
$paginator = new Paginator($risultati, count($risultati),'10');
The problem is that the object that i generate is something like:
LengthAwarePaginator {#311 ▼
#total: 11
#lastPage: 2
#items: Collection {#312 ▶}
#perPage: "10"
#currentPage: 1
#path: "/"
#query: []
#fragment: null
#pageName: "page"
}
so the problem si in the "path", how can I make it works again? thanks a lot