Use Do..While until the next page is null :)
May 15, 2021
5
Level 7
DB Pagination RESTFULL + Extra query's
Hi Everybody,
When you have a restfull api and you do this by Pagination is there a proper way to use extra querys this because paginate will also make the urls for next page ect. witch if you use ?language=NL and some other parameters this must also go with the next page.
Level 55
@kossa use appends method on LengthAwarePaginator instance
return Products::paginate(100)->appends(['language' => 'NL']);
Please or to participate in this conversation.