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

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

Example:

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.
0

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.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mikeritter mikeritter Joined 27 Feb 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.