© 2026 Hedgehog Software, LLC

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

creating records. How customize before saving

In my form at the front, there are 2 input fields:
first_name
first_name
and
last_name
last_name
.
But in the
User
User
model (and DB) at the back, there is 1 field:
full_name
full_name
.
Should I use
mutateFormDataBeforeCreate(array $data): array
mutateFormDataBeforeCreate(array $data): array
or
beforeCreate(): void
beforeCreate(): void
? ( https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving )
If it's
beforeCreate
beforeCreate
, then how can I pick up the submitted form data? (the documentation didnt illustrate that)
Creating records - Panel Builder - Filament
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

How to customize data before saving when creating a new option in a modal
FilamentFFilament / ❓┊help
3y ago
Customizing data before saving
FilamentFFilament / ❓┊help
3y ago
How to perform action before saving relationships?
FilamentFFilament / ❓┊help
3y ago
Compressing pdf file before saving
FilamentFFilament / ❓┊help
12mo ago