📜  在 laravel 中采取和跳过 - PHP 代码示例

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

代码示例1
$count = Attendance::count();
$skip = 5;
$limit = $count - $skip; // the limit
$collection = Attendance::skip($skip)->take($limit)->get();