© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
Sachin Agerwal

afterFill hook not working for relationship data while creating the record

protected function afterFill(): void
{
$this->form->fill([
'charges' => [
[
'name' => 'Freight Charges',
'description' => 'HHG'
],
[
'name' => 'Packing Charges',
'description' => 'Reusable Material'
],
],
]);
}
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

Afterfill hook on EditPage
FilamentFFilament / ❓┊help
3y ago
$record->relationship->fieldData not working
FilamentFFilament / ❓┊help
2y ago
Run function while creating record not on editing.
FilamentFFilament / ❓┊help
2y ago
Use `relationship()` when creating a new record
FilamentFFilament / ❓┊help
3y ago