samedi 26 novembre 2016

Laravel - How to clone a relationshop pivot with its attributes?

I have a many to many relationship in laravel with a pivot object/table. I want to create a copy of one entry in this table, mantaining all the pivot properties (I have extra attributes for the relationship) and creating a new id.

Is it possible with laravel or should I just hack some raw sql into the database?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2giQ5Tq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire