public function table(Table $table): Table
{
return $table
...
->actions([
Tables\Actions\EditAction::make()
->extraModalFooterActions([
\Filament\Tables\Actions\Action::make('do-this')
->label('Do This')
->action(function($record){
//1 Do something that updates $record
//2 Refresh form data
})
]),
Tables\Actions\DeleteAction::make(),
])
...
public function table(Table $table): Table
{
return $table
...
->actions([
Tables\Actions\EditAction::make()
->extraModalFooterActions([
\Filament\Tables\Actions\Action::make('do-this')
->label('Do This')
->action(function($record){
//1 Do something that updates $record
//2 Refresh form data
})
]),
Tables\Actions\DeleteAction::make(),
])
...