jeudi 3 septembre 2020

Laravel 7 | how can i clone eloquent object and add entry in table with all relationship

I want to clone one product with all its relationship like price, attributes, images etc.

also, price and attribute have another relationship (nested relationships)

is there any easy way I can clone all this with few line of code?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire