© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Noxo

Clarification regarding saving logic

I'm not sure if it's supposed to work this way, so I wanted to clarify.
Is it correct that the saving of relationships occurs before the "beforeSave" hook?
I think this is a little strange, because in my opinion, saving the relationships should happen after the “beforeSave” hook, because this hook may contain business logic related to relationships.
Correct me please if I'm wrong 😑

vendor/filament/filament/src/Resources/Pages/EditRecord.php:137
vendor/filament/filament/src/Resources/Pages/EditRecord.php:137

vendor/filament/forms/src/Concerns/HasState.php:188
vendor/filament/forms/src/Concerns/HasState.php:188
Screenshot_2023-10-30_at_22.19.25.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

Activity Logs Clarification
FilamentFFilament / ❓┊help
6mo ago
Saving relationships
FilamentFFilament / ❓┊help
11mo ago
Customize registration logic
FilamentFFilament / ❓┊help
9mo ago
Custom delete logic?
FilamentFFilament / ❓┊help
3y ago