opnform/app/Notifications/VerifyEmail.php

28 lines
618 B
PHP
Raw Permalink Normal View History

2022-09-20 19:59:52 +00:00
<?php
namespace App\Notifications;
use Carbon\Carbon;
use Illuminate\Auth\Notifications\VerifyEmail as Notification;
use Illuminate\Support\Facades\URL;
class VerifyEmail extends Notification
{
/**
* Get the verification URL for the given notifiable.
*
* @param mixed $notifiable
* @return string
*/
protected function verificationUrl($notifiable)
{
$url = URL::temporarySignedRoute(
2024-02-23 10:54:12 +00:00
'verification.verify',
Carbon::now()->addMinutes(60),
['user' => $notifiable->id]
2022-09-20 19:59:52 +00:00
);
return str_replace('/api', '', $url);
}
}