diff --git a/zh/db/paginator.md b/zh/db/paginator.md index 0217b14e1..34dc3abb0 100644 --- a/zh/db/paginator.md +++ b/zh/db/paginator.md @@ -12,23 +12,8 @@ ```php paginate(10); - } -} +// 展示应用中的所有用户,每页显示 10 条数据 +return Db::table('users')->paginate(10); ``` ## 模型分页