consuming paginated api data in laravel code example
Example: pagination in api laravel
follow this link
https://github.com/spatie/laravel-json-api-paginate
follow this link
https://github.com/spatie/laravel-json-api-paginate