MarcTroesken's avatar

L5 Pagination freaks me

Hi there,

I´m playing around with L5 Pagination. I have a set of data in an array. Its an array with arrays in it and I try to paginate it like this:

return new Paginator(
    $strings, count($strings), 2, Paginator::resolveCurrentPage(),
     ['path' => Paginator::resolveCurrentPath()]
);

It renders the right amount of pages with links, but the data is still there (all of it) an not paginated ??!? Any ideas ?

0 likes
2 replies

Please or to participate in this conversation.