first init

This commit is contained in:
ISMAIL MASSERAN
2026-06-08 11:37:14 +08:00
commit 94ecbe5887
1058 changed files with 87732 additions and 0 deletions
View File
@@ -0,0 +1,35 @@
<?php
namespace Modules\Auth\Emails;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class EmailVerificationOtpEmail extends Notification
{
use Queueable;
public function __construct(
protected string $otp
) {}
public function via(object $notifiable): array
{
return ['mail'];
}
public function toMail(object $notifiable): MailMessage
{
$minutes = (int) config('auth.email_verification.expiry_minutes', 10);
return (new MailMessage)
->subject('Pengesahan E-mel - Kod OTP')
->markdown('auth::emails.verification-otp', [
'name' => $notifiable->name,
'otp' => $this->otp,
'minutes' => $minutes,
'logoPath' => public_path('images/logo-kopkb.svg'),
]);
}
}