vendredi 22 février 2019

Detach vs Sync In Laravel

I have product,category and product_category table.I made relationship many to many . Now using attach method user select multiple categories for product and save it for pivot table. now my question is when user update categories for product which method is better to update sync or detach . Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire