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() in the repeater, after relationship()
You will able to get it in the $data or $this->data
Was this page helpful?