I have a Laravel project that has an API. Some endpoint controllers use pagination for the index.
I would like to expose the pagination parameters to the client. The reason is so they wouldn't have to always ask for the first item, just to figure out how many items per page there will be (for instance if the client wants to skip the first X items for some reason).
I've tried paginate(0) but this gives the default of 16 items.
Is there an easy built-in way to do this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l8sDLK
via IFTTT
Aucun commentaire:
Enregistrer un commentaire