Laravel API: Paginated/Full List – Same Endpoint or Separate?

If you need the list of records but paginated in one case, and the full list in another case, how to handle it? I will show you three different ways. 0:00 Intro: Problem with Pagination 1:13 Trying a Separate API…

Laravel API: Paginated/Full List - Same Endpoint or Separate?

Source

0
(0)

If you need the list of records but paginated in one case, and the full list in another case, how to handle it? I will show you three different ways.

0:00 Intro: Problem with Pagination
1:13 Trying a Separate API Endpoint
1:53 Add “all=1” parameter
3:15 Add “per_page” parameter
4:44 When Separate Endpoint is Better?
5:16 Maybe Enroll in my SPA/Laravel Course?

My Course “Vue.js + Laravel: CRUD with SPA”: https://bit.ly/vue-laravel-spa

– – – – –
Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
Enroll in my Laravel courses: https://laraveldaily.teachable.com

0 / 5. 0