ldc-boutique-cnc/app/Notifications/Customer/VerifyEmail.php
Jérémy Munsch f99e259bd5
Tons of fixes Refonte SYNC 1
- Authentification System OK
2022-11-16 12:47:41 +01:00

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