This commit is contained in:
salam committed 2025-10-15 17:22:47 +02:00
1 parent 81b0c92101
commit 17dbdfa605
1 file changed
+17 -4
@@ -2,22 +2,35 @@
namespace App\Notifications; namespace App\Notifications;
use Filament\Facades\Filament; use Illuminate\Bus\Queueable;
use Filament\Notifications\Notification;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class ResetPasswordNotification extends Notification class ResetPasswordNotification extends Notification
{ {
use Queueable; use Queueable;
public function __construct(private readonly string $token) {} /**
* Create a new notification instance.
*/
public function __construct()
{
//
}
/**
* Get the notification's delivery channels.
*
* @return array<int, string>
*/
public function via(object $notifiable): array public function via(object $notifiable): array
{ {
return ['mail']; return ['mail'];
} }
/**
* Get the mail representation of the notification.
*/
public function toMail(object $notifiable): MailMessage public function toMail(object $notifiable): MailMessage
{ {
return (new MailMessage) return (new MailMessage)