mirror of
https://github.com/serialexperiments0815/Dilomarkt---Digitaler-Lokalmarkt.git
synced 2026-07-12 15:32:19 +00:00
29 lines
852 B
PHP
29 lines
852 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class VerifyEmailNotification extends Notification
|
|
{
|
|
public function __construct(private string $code)
|
|
{
|
|
}
|
|
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail(object $notifiable): MailMessage
|
|
{
|
|
return (new MailMessage)
|
|
->subject('Dein Verifizierungscode für Dilomarkt')
|
|
->greeting('Hallo!')
|
|
->line('Vielen Dank für deine Registrierung bei Dilomarkt.')
|
|
->line('Dein Verifizierungscode lautet: ' . $this->code)
|
|
->line('Bitte gib diesen Code in der App ein, um dein Konto zu aktivieren.')
|
|
->salutation('Mit freundlichen Grüßen, das Dilomarkt Team');
|
|
}
|
|
}
|