Closed jadersbr closed 3 years ago
Hi,
Could you give me an example of pagination? I did not succeed in my tests.
When i try execute Game::where('rating_count', '>=', 800)->with(['cover'])->Paginate(48);
Game::where('rating_count', '>=', 800)->with(['cover'])->Paginate(48);
I got result like bellow:
And this didn't working.
Best regards.
Hi, you can use the skip and take methods to get a pagination. Calling paginate directly is not supported for now.
skip
take
paginate
Ok, thank you.
Hi,
Could you give me an example of pagination? I did not succeed in my tests.
When i try execute
Game::where('rating_count', '>=', 800)->with(['cover'])->Paginate(48);
I got result like bellow:
And this didn't working.
Best regards.