Laravel Pagination with Foundation

19th December 2013

Laravel 4's pagination functionality supports Twitter Bootstrap out-of-the-box. However, if you prefer to use Zurb's Foundation, here is the code you'll need. Just drop the presenter class somewhere where your autoloader will pick it up, pick one (or both) of the template files, and configure your app/config/view.php file to point to the appropriate template file.

First, the presenter class:

The simple template file:

The slider template file: