I have an attribute table and attribute values table like:
id | Attribute Name
2 Color
Now i'm saving this attribute values in another table attribute_values
id | attribute_id | values
1 2 Green
2 2 Red
Now there is a issue when i want to update its values, suppose on the update screen user may select only one attribute so i want to know which is the best way to update its values so that if any value is not present it can be removed on update. Right now i'm deleting the old rows and inserting new one but this will consume time.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BaM42M
via IFTTT
Aucun commentaire:
Enregistrer un commentaire