F
Filament11mo ago
Pasindu

Execute an action after the default action

Hi guys, I have a TextInputColumn code like below, I want to execute a query is_completed to true after executing the default query which is updating the description column. How can I do this? TIA!
TextInputColumn::make('description')
->rules(['min:10', 'max:255'])
->action(fn(FollowUp $record, string $value) => $record->update([
'is_completed' => true,
])),
TextInputColumn::make('description')
->rules(['min:10', 'max:255'])
->action(fn(FollowUp $record, string $value) => $record->update([
'is_completed' => true,
])),
I tried the above code but id didn't work.
2 Replies
Want results from more Discord servers?
Add your server