Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
curder committed Nov 16, 2023
1 parent 08f9d3a commit e10eff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/partials/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```

Expand Down

0 comments on commit e10eff5

Please sign in to comment.