I am using scout for my api so can't use pagination , where as the scout only provides the pagination only so are there any ways to use offset and limit in laravel scout?
Asked
Active
Viewed 2,580 times
2 Answers
3
U can use method take()
$result = YourModel::search('query')->take(20)->raw()
or
$result = YourModel::search('query')->take(20)->get()

ArtSur
- 59
- 1
- 8
0
Pagination is built into scout...

Artistan
- 1,982
- 22
- 33
-
you cannot achieve what the question is asking here with the pagination helper. – Tim Bogdanov May 08 '23 at 15:18