R
R
roadtoexp2018-06-25 10:42:05
Laravel
roadtoexp, 2018-06-25 10:42:05

Is it possible to get all pagination links?

I create an instance of the LengthAwarePaginator class. Is it possible to get all pagination links in an array, ie:
[
'localhost/page-1',
'localhost/page-2',
...
'localhost/page-10',
]
The render and links methods are not suitable. All you need is an array of such links.
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question