应该是笔误,会400的
captainwong
5年前
修改理由:
相关信息:
- 类型:教程文章
- 文章: 减少 SQL 查询(下)
- 课程: 《L06 Laravel 教程 - 电商进阶 ( Laravel 5.7 ) (5.7)》
此投稿已在 5年前 合并。
内容修改:
Old | New | Differences |
---|---|---|
205 | 205 | if (!$user = \Auth::user()) { |
206 | 206 | throw new AuthenticationException('请先登录'); |
207 | 207 | } |
208 | if (!$user->email_verified | |
208 | if (!$user->email_verified_at) { | |
209 | 209 | throw new InvalidRequestException('请先验证邮箱'); |
210 | 210 | } |
211 | 211 | if ($order = Order::query() |