请教一个 Cache 的问题?
// 从缓存中读取数据,我们把从 url 中获取的 `token` 与缓存中的值做对比
// 如果缓存不存在或者返回的值与 url 中的 `token` 不一致就抛出异常。
if ($token != Cache::get('email_verification_'.$email)) {
throw new Exception('验证链接不正确或已过期');
}
'email_verification_'.$email 这段代码怎么理解啊?
推荐文章: