27 lines
708 B
PHP
27 lines
708 B
PHP
<?php
|
|
|
|
namespace App\Notifications\Customer;
|
|
|
|
use App\Mail\RegisterConfirmMail;
|
|
use Illuminate\Auth\Notifications\VerifyEmail as NotificationsVerifyEmail;
|
|
|
|
class VerifyEmail extends NotificationsVerifyEmail
|
|
{
|
|
/**
|
|
* Build the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
/** @var \App\Models\Customer $notifiable */
|
|
$verificationUrl = $this->verificationUrl($notifiable);
|
|
|
|
return new RegisterConfirmMail(
|
|
$notifiable,
|
|
$verificationUrl,
|
|
$notifiable->api_data->firstname
|
|
);
|
|
}
|
|
}
|