ldc-boutique-cnc/app/Notifications/Customer/VerifyEmail.php
2023-02-13 14:57:01 +01:00

34 lines
1.2 KiB
PHP

<?php
namespace App\Notifications\Customer;
use Illuminate\Auth\Notifications\VerifyEmail as NotificationsVerifyEmail;
use Illuminate\Notifications\Messages\MailMessage;
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);
$firstname = $notifiable->api_data->firstname;
return (new MailMessage())
->subject(trans("Inscription - :siteName", ['siteName' => config('theme.site_name')]))
/** @var string $firstname */
->greeting("Bonjour " . $firstname)
->line(trans(
"Vous venez de créer un compte sur :siteName.",
['siteName' => config('theme.site_name')]
))
->line("Pour confirmer votre inscription, merci de cliquer sur le lien ci-dessous :")
/** @var string $verificationUrl */
->action(trans('Confirmer mon adresse email'), $verificationUrl);
}
}