DEV Community

Discussion on: Queueing up Laravel Fortify email verification for better performance

Collapse
 
stsryanholton profile image
Ryan Holton

Hi, I'm trying to achieve a queued email verification email for my project. My Laravel project is actually purely just an API backend to a NuxtJS frontend, and as such my fortify.home config is:

'home' => env('SPA_URL', 'https://example.com/account/domains/')
Enter fullscreen mode Exit fullscreen mode

So when I click the email verification button I need it to redirect to this, but after extending the SendEmailVerificationNotification listener the home url isn't retained and ends up just redirecting to localhost which is my API's page which doesn't exist. How can I retain everything about the verification email?

Collapse
 
ahmadtibi profile image
ahmadtibi

Extending the SendEmailVerificationNotification shouldn't affect where you redirect after clicking the email verification button. have you maybe tried adding a redirect at the end of the sendEmailVerificationNotification() method?