Level 52
Because you have no query, so no results, so no pages.
Hello. My query: ModelStuff->paginate(12);
All is good, I have been received Collection, but when I dump the data, I can see:
LengthAwarePaginator {#226 ▼
#total: 1
#lastPage: 1
#items: Collection {#212 ▶}
#perPage: 12
#currentPage: 1
#path: "http://some.dev/artists/"
#query: []
#fragment: null
#pageName: "page"
}
When I try to access: http://some.dev/artists?page=2 all is good, but doesn't see any pagination links in my view. I'm using $artists->render(); But nothing is happen...
It's really strange, why total and lastPage aren't counted correctly?
Please or to participate in this conversation.