我需要使用’限制’从数据库获取数据如何在laravel中执行此操作?雄辩
->limit($value)
只需要一个值,但我需要得到一个范围.我的意思是例如在请求中我发送起点和范围:
0 and 10 (i want to start getting records from first and get next 10)
然后
10 and 10 (i want to start getting records from 10th and get next 10)
在MySQL查询中,可以使LIMIT为0,10 / LIMIT 10,10
从laravel那里做到这一点的方法是什么? – >极限(0,10)?