wip
This commit is contained in:
1 parent
d35b5078cc
commit
ce83b4ec69
1 file changed
+5
-27
@@ -2,35 +2,20 @@
|
|||||||
|
|
||||||
namespace App\Notifications;
|
namespace App\Notifications;
|
||||||
|
|
||||||
use Illuminate\Bus\Queueable;
|
use Filament\Facades\Filament;
|
||||||
use Illuminate\Notifications\Messages\MailMessage;
|
use Illuminate\Support\Facades\Lang;
|
||||||
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)
|
||||||
@@ -42,15 +27,8 @@ class ResetPasswordNotification extends Notification
|
|||||||
->line(Lang::get('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'));
|
->line(Lang::get('Wenn Sie keine Passwortzurücksetzung beantragt haben, sind keine weiteren Maßnahmen erforderlich.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
protected function resetUrl(mixed $notifiable): string
|
||||||
* Get the array representation of the notification.
|
|
||||||
*
|
|
||||||
* @return array<string, mixed>
|
|
||||||
*/
|
|
||||||
public function toArray(object $notifiable): array
|
|
||||||
{
|
{
|
||||||
return [
|
return Filament::getResetPasswordUrl($this->token, $notifiable);
|
||||||
//
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user