Search code examples
laravellaravel-5zurb-foundationzurb-foundation-5zurb-foundation-6

Laravel Pagination Foundation Compatibility


According to Laravel Documentation

In other frameworks, pagination can be very painful. Laravel makes it a breeze. Laravel can quickly generate an intelligent "range" of links based on the current page, and the generated HTML is compatible with the Bootstrap CSS framework.

My question is Foundation also compatible with Laravel's pagination?


Solution

  • There is nothing to stop Laravel pagination working with Foundation but the default HTML generated by Laravel is Bootstrap specific. There is no mention in the docs or API to suggest that it can generate Foundation-specific code.

    You have two choices. One is to write your own custom code (covered elsewhere on Stack Overflow, although not specifically for Foundation)

    The other option is to pull in a specific package that someone else has written:

    Laravel 4

    https://github.com/binarix/Laravel-Foundation-Pagination

    Laravel 5

    https://github.com/etcinit/foundation-pagination