D
D
Dmitry Lakhno2018-02-01 15:59:41
Laravel
Dmitry Lakhno, 2018-02-01 15:59:41

How to make your own pagination in Laravel?

How can I make pagination in Laravel on a regular data array. I receive this array not from a DB.
The documentation describes that you can create an instance of the Paginator or LengthAwarePaginator class, but there is no information on exactly how to do all this. Can anyone suggest how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nesmeyanov, 2018-02-01
@lahno

Class instances are created using the new keyword : php.net/manual/en/language.oop5.basic.php
What other information do you need?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question