From dcf38d94b072843d5ad7381cc103a6271086c901 Mon Sep 17 00:00:00 2001 From: Mojtaba Sayari Date: Mon, 13 May 2024 15:53:01 +0300 Subject: [PATCH 1/2] Update fortify.md --- fortify.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fortify.md b/fortify.md index 4e6c83dbbf4..5b7cc5a6949 100644 --- a/fortify.md +++ b/fortify.md @@ -238,6 +238,20 @@ public function register(): void } ``` +You can also customize redirects from `config/fortify.php` configuration file by giving the desire route name for each of the following actions. for example, if you want to redirect to the dashboard route after verifying the email address, you can set `dashboard` 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, +], +``` + + ## Two Factor Authentication From c8b845b38625cbca790748e8a972f6f9ce2c2349 Mon Sep 17 00:00:00 2001 From: Mojtaba Sayari Date: Mon, 13 May 2024 20:02:10 +0300 Subject: [PATCH 2/2] change route to URL and fix grammatical errors --- fortify.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fortify.md b/fortify.md index 5b7cc5a6949..75c4e6553cd 100644 --- a/fortify.md +++ b/fortify.md @@ -238,7 +238,7 @@ public function register(): void } ``` -You can also customize redirects from `config/fortify.php` configuration file by giving the desire route name for each of the following actions. for example, if you want to redirect to the dashboard route after verifying the email address, you can set `dashboard` the value of `email-verification` key in the `redirects` array. +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' => [ @@ -246,12 +246,11 @@ You can also customize redirects from `config/fortify.php` configuration file by 'logout' => null, 'password-confirmation' => null, 'register' => null, - 'email-verification' => 'dashboard', + 'email-verification' => '/dashboard', 'password-reset' => null, ], ``` - ## Two Factor Authentication