© 2026 Hedgehog Software, LLC

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

Resource Lifecycle hooks wrapped in a transaction

I would like to confirm, as implied by the title, that its all or nothing in terms of DB operations across the lifecycle hooks. For instance, in afterCreate hook of a resource, I intend to insert records in another table and update yet a 3rd. If I throw an exception at any stage, all preceding DB operations will also have no impact, including the resource. Is this a correct understanding of how filamentphp works? Or do I need to start the transaction explicitly?
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

Relation Manager Lifecycle Hooks
FilamentFFilament / ❓┊help
2y ago
Export Action - Lifecycle Hooks
FilamentFFilament / ❓┊help
3y ago
Custom page lifecycle hooks
FilamentFFilament / ❓┊help
3y ago
Accessing current record in Lifecycle Hooks.
FilamentFFilament / ❓┊help
3y ago