class ResetPasswordAction extends Action
{
protected function setUp(): void
{
$this
->name('reset-password')
->label(__('Passwort zurücksetzen'))
->icon('heroicon-o-key')
->requiresConfirmation()
->action(fn (Hotel|User $record, array $data) => $record->sendPasswordResetNotification(Str::random()))
->color('gray')
->after(fn () => Notification::make()
->title(__('Link wurde versandt'))
->body(__('Der Link zum Zurücksetzen des Passworts wurde versandt.'))
->success()
->send()
);
}
}
class ResetPasswordAction extends Action
{
protected function setUp(): void
{
$this
->name('reset-password')
->label(__('Passwort zurücksetzen'))
->icon('heroicon-o-key')
->requiresConfirmation()
->action(fn (Hotel|User $record, array $data) => $record->sendPasswordResetNotification(Str::random()))
->color('gray')
->after(fn () => Notification::make()
->title(__('Link wurde versandt'))
->body(__('Der Link zum Zurücksetzen des Passworts wurde versandt.'))
->success()
->send()
);
}
}