© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
pathogen

Update parent record with SUM of two related tables

I need to update the parent record with the sum of the related table and wondering what would be the best way to achieve this. Would the best way to add a function to the create & edit forms of the related table so it calculates and updates, or is there a better way of doing this?
I'd also like the parent fields to update when a new record is added or edited. Any advise on the best way would be appreciated.
CleanShot_2024-04-06_at_12.51.082x.png
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

sum two fields
FilamentFFilament / ❓┊help
3y ago
Update record with multiple tables in the single form
FilamentFFilament / ❓┊help
3y ago
Getting SUM of related table column not working
FilamentFFilament / ❓┊help
2y ago
Related page with unconventional relation to parent
FilamentFFilament / ❓┊help
5mo ago