Laravel Pagination with Foundation

Posted 19th December 2013

Lar­avel 4’s pag­i­na­tion func­tion­al­ity sup­ports Twit­ter Boot­strap out-​of-​the-​box. How­ever, if you pre­fer to use Zurb’s Foun­da­tion, here is the code you’ll need. Just drop the pre­sen­ter class some­where where your autoloader will pick it up, pick one (or both) of the tem­plate files, and con­fig­ure your app/config/view.php file to point to the appro­pri­ate tem­plate file.

First, the pre­sen­ter class:

The sim­ple tem­plate file:

The slider tem­plate file: