文档:分页

文档:分页

分页

php
       
$users = DB::table('users')->page();

foreach($users as $user) {
    echo $user['id'];
}

echo $users->getLink(); // 输出分页链接
1234567