laravel-json-api icon indicating copy to clipboard operation
laravel-json-api copied to clipboard

Pagination In Custom Method

Open Amik-TJ opened this issue 4 years ago • 1 comments

I am using a controller which is extending JSONAPICONTROLLER. But in my index method I have overridden it. So Now I am trying to paginate the data and send them but facing difficulties. Can anyone help ?

image

Amik-TJ avatar Aug 16 '21 11:08 Amik-TJ

You'd need to provide the pagination parameters from the request to the paginate() method you're calling. I'm assuming that's the problem, but not sure - you'd need to provide more info on what isn't working if that's not the problem.

lindyhopchris avatar Aug 18 '21 17:08 lindyhopchris