Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fortify.md #9654

Draft
wants to merge 2 commits into
base: 11.x
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions fortify.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@ public function register(): void
}
```

You can also customize redirects from the `config/fortify.php` configuration file by giving the desired URL for each of the following actions. For example, if you want to redirect to the dashboard after verifying the email address, you can set the `/dashboard` to the value of `email-verification` key in the `redirects` array.

```php
'redirects' => [
'login' => null,
'logout' => null,
'password-confirmation' => null,
'register' => null,
'email-verification' => '/dashboard',
'password-reset' => null,
],
```

<a name="two-factor-authentication"></a>
## Two Factor Authentication

Expand Down