© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
varovas

Do something with record after save

Hi, somehow I did not find a solution for doing something with a record after it was created/updated.

Use case: I want to place a checkbox to a resource form. Then when record was created or updated, I want to check if that checkbox was checked and if it was, I want to create a job operation.

Example:
public function afterSaveHook(Model $model, array $data)
{
    if (isset($data['is_completed']) {
        SendCompletedNotification::dispatch($model);
    }
}
public function afterSaveHook(Model $model, array $data)
{
    if (isset($data['is_completed']) {
        SendCompletedNotification::dispatch($model);
    }
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

After save a record, how i call a action?
FilamentFFilament / ❓┊help
3y ago
Save each word as new record
FilamentFFilament / ❓┊help
2y ago
Access record after creation
FilamentFFilament / ❓┊help
3y ago
Select createOptionForm not saved with the record
FilamentFFilament / ❓┊help
3y ago