Method Filament\Tables\Actions\Action::deactivateAction does not exist.
Where am I do wrong?
Tables\Actions\Action::make('deactivate')
->form([
Forms\Components\Textarea::make('remark')
->string()
->required(),
Forms\Components\TextInput::make('password')
->password()
->required()
->unique(User::class, 'password'),
])
->deactivateAction()
//
public function deactivateAction()
{
$this->action(function (User $record): void {
$record->deactivateLog()->updateOrCreate([
'remark' => $record->remark,
]);
});
return $this;
}