$user = model('Index'); //初始化模型 $dbxx = $user->order('ID','DESC')-> paginate(10,false,[ 'query' => request()->param(), ]);
paginate方法的第三个参数
CodingSorcery