Support the ongoing development of →
Database Eloquent
Last updated 2 years ago.

I'd prefer to see the former because it lends itself to better user flexibility.


in Laravel I set User::paginate(25)

which always returns 25 records per page.

in the APIGee model the query can return 2 or 200 results per page, better for the savvy user.

Last updated 2 years ago.

You should try to use cursors in a RESTful API.

Take a look at Fractal They got a pretty nice pagination module.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

mikeritter mikeritter Joined 27 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.