© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
_𝕰𝖋x

Customizing update process globally

Hi,

I have a CustomerResource. In my EditCustomer class I added handleRecordUpdate function.

In another resource I use a Select field to select a customer. In the field I added an editOptionForm. Unfortunately when I update the customer via the edit modal my handleRecordUpdate function is not being executed.

I saw there is a updateOptionUsing function for the select field but I do not want to copy the same code from handleRecordUpdate because whenever I change something there I have to update the code in updateOptionUsing as well.

Is there a way to have one single update handle function globally which is being executed no matter whether the record is being updated via edit page or actions or relations? I could not find any information in the docs.
Solution
What about Eloquent events? https://laravel.com/docs/11.x/eloquent#events
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Laravel - The PHP Framework For Web Artisans
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Customizing the creation process
FilamentFFilament / ❓┊help
3y ago
Customizing the creation process of relationship
FilamentFFilament / ❓┊help
3y ago
Update create action labels globally
FilamentFFilament / ❓┊help
5mo ago
Customizing page
FilamentFFilament / ❓┊help
2y ago