Komayo's avatar

Pagination in view

How can i use the following paginator in the blade view?

    $paginator = new Paginator($render_data, count($render_data), 5);

Iam passing the $render_data to view, and using it on a @foreach loop

0 likes
4 replies
rodrigo.pedra's avatar

Pass the $paginator to the view and try this:

<div>
    {!!   $paginator->render() !!}
</div>
1 like
Komayo's avatar

Its showing the page numbers and redirecting, but url of redirection is wrong.

How can i fix it?

Also, how i integrate it with my @foreach?

Please or to participate in this conversation.