Files
fotospiel-app/app/Notifications/ResetPasswordNotification.php

24 lines
685 B
PHP

<?php
namespace App\Notifications;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Notifications\Messages\MailMessage;
class ResetPasswordNotification extends ResetPassword
{
public function toMail($notifiable): MailMessage
{
$resetUrl = $this->resetUrl($notifiable);
$expire = (int) config('auth.passwords.'.config('auth.defaults.passwords').'.expire', 60);
return (new MailMessage)
->subject(__('emails.reset_password.subject'))
->view('emails.reset-password', [
'user' => $notifiable,
'resetUrl' => $resetUrl,
'expiresIn' => $expire,
]);
}
}