redirect route 路由传参
作者:互联网
return redirect()->route('exams.sign',['token'=>$token,'id'=>$result['id']]);
// 签到页面 Route::get('exams/sign','ExamTwoController@sign')->name('exams.sign');
接受参数:
public function sign(Request $request) { // 接受token $token=$request->get('token'); $id=$request->get('id'); return view('exams/sign',compact('id')); }
标签:redirect,传参,get,route,request,sign,token,exams,id 来源: https://www.cnblogs.com/xiaoyantongxue/p/15931575.html