laravel框架自带了分页,用起来非常方便
现在我们想自定义当前页数及每页条数
> $builder = new user();
$apps = $builder::orderBy('id', 'desc')-\>paginate($request-\>input('pageSize',20),'*','current');
$builder = new user();
$list = $builder::orderBy('created_at','desc')->Paginate(10,['*'],'current',$request->input('current'));