© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
afterFill hook not working for relationship data while creating the record - Filament
F
Filament
•
3y 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
Join
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Afterfill hook on EditPage
F
Filament / ❓┊help
3y ago
$record->relationship->fieldData not working
F
Filament / ❓┊help
2y ago
Run function while creating record not on editing.
F
Filament / ❓┊help
2y ago
Use `relationship()` when creating a new record
F
Filament / ❓┊help
3y ago