// 角色转换
public function roleconversion($a,$tell){
$value = $request->session()->get('keys');
$value1 = $request->session()->get('ayas');
if(empty($value) || time()>$value1->endtime){
return redirect()->action('Seller\UserController@login');
}
$id = $value->id;
$info = User::where('id',$id)
->update(['mridentity'=>$a]);
$infos = User::where('id',$id)->first();
if($info){
$request->session()->forget('keys');
$request->session()->put('keys', $infos);
return redirect()->action('Seller\IndexController@index');
// return back()->with('success','切换成功');
}else{
return back()->with('error','切换失败');
}
}
这样写会报错,报
Whoops, looks like something went wrong.1/1
ErrorException in UserController.php line 65:
Missing argument 2 for AppHttpControllersSellerUserController::roleconversion()
这样的错误