Hello guys, I'm cloning a model with the relationships as well, everything is fine until replicate the attachments.
This works fine:
$new = $model->replicate();
And if i need a relationship, this works too:
$model->realstate->replicate();
But the replicate() dont work with attachments:
$model->images->replicate();
Any idea about how to clone / replicate the attachment model?