如何在 view 中获取上一个页面的值?
public function sendVerifiCode(VerificationCodeRequest $request, EasySms $easysms)
{
.
.
.
//缓存验证码5分钟过期(->toDateTimeString())。
\Cache::put($key, ['cellphone' => $cellphone, 'verification_code' => $code, 'verification_key' => $key], $expiredAt);
$verifiArray = \Cache::get($key);
return redirect()->route('verifiCodeInput', $key);
}
public function verifiCodeInput (){
return view('mobile.auth.member-login-verificationCode');
}
1、`sendVerifiCode()` 执行以后,得到url `http://dn.com/verifinput?$key` 怎么在 `verifiCodeInput()` 获取 `$key` 的值?
2、怎么在url隐藏key值隐藏传值?
推荐文章: