Clone record with relationship table
Hi all, I have an application with orders and orderitems models. I want to duplicate an order using the replicate action from the table view. When I do that, I cant replicate the data from the order table but it doesnt replicate the data from the orderitems table. Is there a way to do this? a plug in or something similar? Thanks for your help
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1137908434449223792/image.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1137908434700873728/image.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1137908434973507714/image.png)
2 Replies
maybe something like this
for more
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/replicate#lifecycle-hooks
Thanks for the info. Will try this solution and follow up