© 2026 Hedgehog Software, LLC

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

Saving repeater without using the saveRelationShipUsing

Hi, I have a repeater with nested relations the repeater does not save it right because every model consist of more than table so i need to save it using custom code in SaveRelationUsing it is working now but this pattern repeater in multiple resources so i need to extract this logic to afterSave hook but the issue is the repeater values is not present in $data array

Is there any way to access the updated values of repeater fields in after or before save hooks?
Solution
add
dehydrated()
dehydrated()
in the repeater, after
relationship()
relationship()

You will able to get it in the
$data
$data
or
$this->data
$this->data
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Repeater visual bug after saving?
FilamentFFilament / ❓┊help
14mo ago
Repeater not saving pivot relationship
FilamentFFilament / ❓┊help
2y ago
Problems using JSON from Repeater and saving in mysql
FilamentFFilament / ❓┊help
3y ago
repeater filamentphp without relationship
FilamentFFilament / ❓┊help
2y ago