Certificate manager built on Laravel 13, Livewire 4, and Flux. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
42 lines
1 KiB
PHP
42 lines
1 KiB
PHP
<?php
|
|
|
|
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 SharedCertificateLinksMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
/**
|
|
* @param array<int, array{title: string, url: string}> $links
|
|
*/
|
|
public function __construct(
|
|
public string $senderName,
|
|
public array $links,
|
|
public string $expiresAt,
|
|
) {}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: __(':name shared certificates with you', ['name' => $this->senderName]),
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
markdown: 'mail.shared-certificate-links',
|
|
with: [
|
|
'senderName' => $this->senderName,
|
|
'links' => $this->links,
|
|
'expiresAt' => $this->expiresAt,
|
|
],
|
|
);
|
|
}
|
|
}
|