FilamentF
Filament15mo ago
Sam ツ

Submit button when editing table data

Hi,

I am new to laravel and filament, in a table I have several fields that can be updated such as date and some booleans:

After some states have been updated I want to send customers a mail with an update regarding their order. Problem is that I do not want these mails to be directly sent and I'd rather have a submit button in the corner that the changes to the table can be submitted to prevent incorrect mails being send.

What would be a good method doing this, here is an example of one field that is being updated:

                ToggleColumn::make('no_longer_available')->label("No Longer Available")->afterStateUpdated(function ($record) {
                    if ($record->no_longer_available == true) {
                        $this->orderNotificationService->notifyCustomerNLA($record->order_id, $record->id);

                    }
                }),
Was this page helpful?