Laravel Auth

PHP MIT

Laravel Auth by GhostCompiler adds advanced authentication for Laravel with TOTP 2FA, passkeys via WebAuthn, OTP channels (email, SMS, WhatsApp), trusted devices, and tenant-aware social login.

Stars
2
Forks
0
Downloads
N/A
Open Issues
0
Files main

Repository Files

Loading file structure...
src/Mail/OtpCodeMail.php
<?php

declare(strict_types=1);

namespace GhostCompiler\LaravelAuth\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;

class OtpCodeMail extends Mailable
{
    use Queueable;

    /**
     * @param  array<string, mixed>  $data
     */
    public function __construct(
        protected string $viewName,
        protected string $subjectLine,
        protected array $data
    ) {}

    public function build(): self
    {
        return $this->subject($this->subjectLine)
            ->view($this->viewName, $this->data);
    }
}