cviebrock / eloquent-taggable

Easily add the ability to tag your Eloquent models in Laravel.
MIT License
559 stars 72 forks source link

Sync tags without removing and adding them #92

Closed LeonAlvarez closed 4 years ago

LeonAlvarez commented 5 years ago

Hi, is there a way to sync tags, retag is removing all tags and them adding them back. Im auditing the tags add / remove so this causes more more actions than it should.

cviebrock commented 5 years ago

From a SQL point of view, you're going to have to remove the relations and then insert them anyway. So I'm not sure how this would work with "fewer actions".

I'm open to suggestions, though.

bogordesaincom commented 4 years ago

same problem

cviebrock commented 4 years ago

Closing due to no response. Feel free to re-open or comment if you are still having issues.