Level 18
A quick search brings up this article. Here's some example code..
$createUrlCallbackis the callback that should be used to create the verify email URL.
// In your AuthSeriviceProvider in the boot() method
VerifyEmail::createUrlUsing(function ($notifiable) {
$verifyUrl = URL::temporarySignedRoute(
'verification.verify',
Carbon::now()->addMinutes(Config::get('auth.verification.expire', 60)),
[
'id' => $notifiable->getKey(),
'hash' => sha1($notifiable->getEmailForVerification()),
]
);
return 'https://yourapp.com/email/verify?verify_url=' . urlencode($verifyUrl);
});
1 like