diff --git a/app/Notifications/ResetPasswordNotification.php b/app/Notifications/ResetPasswordNotification.php index a8114e2..3b2fcf2 100644 --- a/app/Notifications/ResetPasswordNotification.php +++ b/app/Notifications/ResetPasswordNotification.php @@ -3,7 +3,6 @@ namespace App\Notifications; use Filament\Facades\Filament; -use Illuminate\Support\Facades\Lang; class ResetPasswordNotification extends Notification { @@ -19,12 +18,12 @@ class ResetPasswordNotification extends Notification public function toMail(object $notifiable): MailMessage { return (new MailMessage) - ->subject(Lang::get('Benachrichtigung zum Zurücksetzen des Passworts')) - ->greeting(Lang::get('Hallo')." {$notifiable->name},") - ->line(Lang::get('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.')) - ->action(Lang::get('Passwort Zurücksetzen'), $this->resetUrl($notifiable)) - ->line(Lang::get('Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')])) - ->line(Lang::get('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.')); + ->subject('Benachrichtigung zum Zurücksetzen des Passworts') + ->greeting('Hallo'." {$notifiable->name},") + ->line('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.') + ->action('Passwort Zurücksetzen', $this->resetUrl($notifiable)) + ->line('Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')]) + ->line('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'); } protected function resetUrl(mixed $notifiable): string