laravel日记
1
2
3
4
$request->validate([
'email' => 'required|email',
'password' => 'required|confirmed|min:8',
])

failed后会redirect 并自动注入变量$errors

Author: hundan
Link: https://hundan.org/2022/11/17/laravel日记/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.