1
Is there any way simple to paginate an Array in Laravel?
I have an array $calls what date a search makes the return of type:
Until version 5 there was the method
Paginator::make($atendimentos, count($atendimentos), 10);
In which you passed the array, its size and the registration number you wanted per page. However it was removed and I researched a lot, but I found nothing in the new versions.
Edited: I am using in the system Lengthawarepaginator in the rest of the system and I imagine necessary in this case as well, because my $call array comes from a search. But if there is any way with the Paginator accept suggestions.
https://laravel.com/docs/8.x/pagination#Manually-Creating-a-Paginator does have yes
– novic
@novic reopened, feel free to formalize an answer, despite believing that the question needs clarification, as there are cases that will have to be
Illuminate\Pagination\Paginator
and othersIlluminate\Pagination\LengthAwarePaginator
– Guilherme Nascimento