📜  laravel 模型查询限制 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.883000             🧑  作者: Mango

代码示例1
skip = OFFSET
$products = $art->products->skip(0)->take(10)->get(); //get first 10 rows
$products = $art->products->skip(10)->take(10)->get(); //get next 10 rows