lundi 31 août 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?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3hKESdI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire