$list= user::where($search)
->order('id desc')
->paginate(10, false, ['query' => request()->param()])
'currentPage'=>$list->currentPage(),//起始页
'lastPage'=>$list->lastPage(),//尾页
'total'=>$list->total(),//总页数
->paginate(10,false,['page' => $page]);
->each(function ($item, $key) {
$item['ask_avatar'] = "/public/images/answeravatar/123.jpg"; //提问者默认头像
return $item;
})