26 lines
560 B
PHP
26 lines
560 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Auth\Mail;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
|
|
class UserOtpMail 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.user-otp');
|
|
}
|
|
}
|