2026-08-31 12:05:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-08-31 12:40:30 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-08-31 12:05:37 +02:00
|
|
|
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;
|
2026-08-31 12:05:37 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
2026-08-31 12:05:37 +02:00
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
public readonly array $data,
|
2026-08-31 12:40:30 +02:00
|
|
|
) {
|
|
|
|
|
}
|
2026-08-31 12:05:37 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the message envelope.
|
|
|
|
|
*/
|
|
|
|
|
public function envelope(): Envelope
|
|
|
|
|
{
|
|
|
|
|
return new Envelope(
|
2026-09-03 11:29:57 +02:00
|
|
|
subject: 'Nouvelle demande - Rejoindre le collectif',
|
2026-08-31 12:05:37 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
}
|