b2in/app/Notifications/CustomVerifyEmailNotification.php
2026-01-23 17:33:10 +01:00

29 lines
1.1 KiB
PHP

<?php
namespace App\Notifications;
use Illuminate\Auth\Notifications\VerifyEmail;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Support\Facades\URL;
class CustomVerifyEmailNotification extends VerifyEmail
{
/**
* Get the verify email notification mail message for the given URL.
*
* @param string $url
* @return \Illuminate\Notifications\Messages\MailMessage
*/
protected function buildMailMessage($url)
{
return (new MailMessage)
->subject('E-Mail-Adresse bestätigen - ' . config('app.name'))
->greeting('Willkommen bei ' . config('app.name') . '!')
->line('Vielen Dank für Ihre Registrierung!')
->line('Bitte bestätigen Sie Ihre E-Mail-Adresse, indem Sie auf den folgenden Button klicken:')
->action('E-Mail-Adresse bestätigen', $url)
->line('Dieser Bestätigungslink läuft in **60 Minuten** ab.')
->line('Falls Sie kein Konto bei uns erstellt haben, ignorieren Sie bitte diese E-Mail.')
->salutation('Mit freundlichen Grüßen, ' . PHP_EOL . 'Ihr **' . config('app.name') . '** Team');
}
}