HumbleJuL
HumbleJuL
Explore posts from servers
FFilament
Created by HumbleJuL on 11/24/2023 in #❓┊help
Method Filament\Tables\Columns\ToggleColumn::afterStateUpdated does not exist.
I need to make an action when i toggle and i saw the hook in the documentation but it didn't work and I don't know why. Here is my code :
ToggleColumn::make('is_online')
->afterStateUpdated(function ($record, $state) {
$this->togglePublish($record);
}),
ToggleColumn::make('is_online')
->afterStateUpdated(function ($record, $state) {
$this->togglePublish($record);
}),
3 replies