26 lines
568 B
PHP
26 lines
568 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Core\Auth\Mail;
|
||
|
|
|
||
|
|
use Illuminate\Mail\Mailable;
|
||
|
|
use Illuminate\Mail\Mailables\Content;
|
||
|
|
use Illuminate\Mail\Mailables\Envelope;
|
||
|
|
|
||
|
|
class CustomerOtpMail extends Mailable
|
||
|
|
{
|
||
|
|
public function __construct(
|
||
|
|
public readonly string $name,
|
||
|
|
public readonly string $code,
|
||
|
|
) {}
|
||
|
|
|
||
|
|
public function envelope(): Envelope
|
||
|
|
{
|
||
|
|
return new Envelope(subject: 'Ο κωδικός σύνδεσης σου');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function content(): Content
|
||
|
|
{
|
||
|
|
return new Content(view: 'core::auth.mail.customer-otp');
|
||
|
|
}
|
||
|
|
}
|