ldc-bien-etre-animal/app/Mail/JoinGroupNotification.php

49 lines
957 B
PHP
Raw Permalink Normal View History

<?php
2026-08-31 12:40:30 +02:00
declare(strict_types=1);
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class JoinGroupNotification extends Mailable
{
2026-08-31 12:40:30 +02:00
use Queueable;
use SerializesModels;
/**
* Create a new message instance.
2026-09-04 12:15:37 +02:00
*
2026-08-31 12:40:30 +02:00
* @param array<string, mixed> $data
*/
public function __construct(
public readonly array $data,
2026-08-31 12:40:30 +02:00
) {
}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
subject: 'Nouvelle demande - Rejoindre le collectif',
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
view: 'emails.join-group',
with: ['data' => $this->data],
);
}
2026-08-31 12:40:30 +02:00
}