wip
This commit is contained in:
1 parent
d8499e6620
commit
7239caf743
1 file changed
+16
-6
@@ -33,13 +33,23 @@ class ResetPasswordNotification extends Notification
|
|||||||
public function toMail(object $notifiable): MailMessage
|
public function toMail(object $notifiable): MailMessage
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->subject('Benachrichtigung zum Zurücksetzen des Passworts')
|
->subject(Lang::get('Reset Password Notification'))
|
||||||
->greeting('Hallo'." {$notifiable->name},")
|
->greeting(Lang::get('Hello')." {$notifiable->name},")
|
||||||
->line('Sie erhalten diese E-Mail, weil wir eine Anfrage zum Zurücksetzen des Passworts für Ihr Konto erhalten haben.')
|
->line(Lang::get('You are receiving this email because we received a password reset request for your account.'))
|
||||||
->action('Passwort Zurücksetzen', $this->resetUrl($notifiable))
|
->action(Lang::get('Reset Password'), $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'))]))
|
->line(Lang::get('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')]))
|
||||||
->line('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.');
|
->line(Lang::get('If you did not request a password reset, no further action is required.'));
|
||||||
}
|
}
|
||||||
|
// public function toMail(object $notifiable): MailMessage
|
||||||
|
// {
|
||||||
|
// return (new MailMessage)
|
||||||
|
// ->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(Lang::get('Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.', ['count' => config('auth.passwords.'.config('auth.defaults.passwords'))]))
|
||||||
|
// ->line('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.');
|
||||||
|
// }
|
||||||
|
|
||||||
protected function resetUrl(mixed $notifiable): string
|
protected function resetUrl(mixed $notifiable): string
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user