© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Shaung Bhone

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;
}
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;
}
Solution
If you want this, you need to implement that method on your action
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Method Filament\Tables\Actions\Action::getColumns does not exist.
FilamentFFilament / ❓┊help
3y ago
Method Filament\Tables\Table::extremePaginationLinks does not exist.
FilamentFFilament / ❓┊help
2y ago
Method Filament\Actions\ExportAction::table does not exist.
FilamentFFilament / ❓┊help
2y ago
Error: Method Filament\Forms\Components\Actions\Action::isModalClosedByClickingAway does not exist
FilamentFFilament / ❓┊help
3y ago