This commit is contained in:
salam committed 2025-10-15 17:01:08 +02:00
1 parent d35b5078cc
commit ce83b4ec69
1 file changed
+5 -27
@@ -2,35 +2,20 @@
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use Filament\Facades\Filament;
use Illuminate\Support\Facades\Lang;
class ResetPasswordNotification extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*/
public function __construct()
{
//
}
public function __construct(private readonly string $token) {}
/**
* Get the notification's delivery channels.
*
* @return array<int, string>
*/
public function via(object $notifiable): array
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*/
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
@@ -42,15 +27,8 @@ class ResetPasswordNotification extends Notification
->line(Lang::get('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'));
}
/**
* Get the array representation of the notification.
*
* @return array<string, mixed>
*/
public function toArray(object $notifiable): array
protected function resetUrl(mixed $notifiable): string
{
return [
//
];
return Filament::getResetPasswordUrl($this->token, $notifiable);
}
}