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
Watch video Laravel API: Paginated/Full List - Same Endpoint or Separate? online without registration, duration hours minute second in high quality. This video was added by user Laravel Daily 03 August 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,192 once and liked it 310 people.