After save a record, how i call a action?

I need call a action after save a record on form builder. How do I do this?
1 Reply
fblaser
fblaser5mo ago
You can use the ->after(..) hook on your EditAction
EditAction::make("...")
->after(function () {
// Runs after the form fields are saved to the database.
})
EditAction::make("...")
->after(function () {
// Runs after the form fields are saved to the database.
})
Full documentation is here: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/edit#lifecycle-hooks