ldc-boutique-cnc/app/Notifications/Customer/DestroyedCustomer.php
Jérémy Munsch 499a8ff66e
- Allow customer to soft delete and full delete
- Fixed customer info update
2023-03-20 12:52:55 +01:00

44 lines
1.4 KiB
PHP

<?php
namespace App\Notifications\Customer;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class DestroyedCustomer extends Notification
{
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Build the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage())
->subject(trans("Votre compte est suprimé - :siteName", [
'siteName' => config('theme.site_name')
]))
->greeting('Bonjour')
->line(trans(
"Votre compte :siteName a été définitivement supprimé ainsi ques les données associés,
si vous aviez effectué une commande elle sera bien sûr toujours honorée. Les commandes associés
a votre compte continueront d'exister mais les données de votre compte ont bien été supprimées.",
[
'siteName' => config('theme.site_name')
]
));
}
}