specialtactics / laravel-api-boilerplate

Laravel API Boilerplate | Quickly build quality API products!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getAll() pagenation

kfoon opened this issue · comments

commented

getAll() how to set the number of page and also get the next page

commented

There's no way to get the number of pages. This is just to do with how pagination works - it's a constrain of speed (ie. not every database can efficiently count rows, so getting number of pages is an inefficient operation).

Going to the next page is as per normal in laravel - ie. page query param.