From e10eff5a3b0647f43dd14c7d072691bb5cfbf347 Mon Sep 17 00:00:00 2001 From: curder Date: Thu, 16 Nov 2023 11:37:39 +0800 Subject: [PATCH] WIP --- docs/partials/validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/partials/validation.md b/docs/partials/validation.md index 6f8de3f4d..ffc2905f4 100644 --- a/docs/partials/validation.md +++ b/docs/partials/validation.md @@ -300,10 +300,10 @@ request()->validate([ 当使用表单请求进行验证时,默认情况下验证错误将重定向回上一步,可以通过定义 `$redirect` 或 `$redirectRoute` 的属性即可覆盖它。 ```php -// The URI that users should be redirected to if validation fails./ +// 验证失败时用户应重定向到的 URI protected $redirect = '/dashboard'; -// The route that users should be redirected to if validation fails. +// 验证失败时应将用户重定向到的路由 protected $redirectRoute = 'dashboard'; ```