Custom pagination

  • Hi,

    I'm trying to build a custom pagination for a certain module.
    The idea is to show on the first page n elements, then in the following pages m elements. (Being n < m).

    Where should I Implement this custom paginator? In the Eloquent{MyModuleName}Repository , or in the {MyModuleName}Repository ?

    Also, I'd like to keep the output with the own module relations, so the out-of-the-box Laravel's pagination method doesn't work for me. Are there out some examples of how to implement it with Laravel?

    The functionality I'm looking for would be exactly like this one (from a Django Framework app) :
    Different number of items on first page

Log in to reply

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.