ldc-boutique-cnc/app/Notifications/Customer/VerifyEmail.php

28 lines
708 B
PHP
Raw Normal View History

<?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
);
}
}