24 lines
623 B
PHP
24 lines
623 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Http\SignedLink;
|
|
use Illuminate\Auth\Notifications\VerifyEmail;
|
|
use Illuminate\Support\Carbon;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
class VerifyEmailAddress extends VerifyEmail
|
|
{
|
|
protected function verificationUrl($notifiable): string
|
|
{
|
|
return SignedLink::temporary(
|
|
'verification.verify',
|
|
Carbon::now()->addMinutes((int) Config::get('auth.verification.expire', 60)),
|
|
[
|
|
'id' => $notifiable->getKey(),
|
|
'hash' => sha1($notifiable->getEmailForVerification()),
|
|
],
|
|
);
|
|
}
|
|
}
|