Validate 验证问题。使用 make:request 生成的验证更新操作时如何使用 ignore。
使用make:request生成的验证更新操作时如何使用ignore。
文档中使用的是Rule::unique('users')->ignore($user->id),
那么在 app/Http/Requests/Updatexxx.php这个类中验证如何获取类似$user->id这样的值?
推荐文章: