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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2U34PcN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire