id; $list = AccountLog::where('from_id',$id)->where('to_id',$id) ->where('op','充值')->orderBy('id','desc')->paginate(20); Log::info($list); return view('admin.account_log.index',compact('list')); } public function destroy(Request $request) { $bool = AccountLog::destroy($request->id); if($bool) { return $this->showMessage('操作成功'); }else{ return $this->showWarning("操作失败"); } } }