rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Tagged Data Inconsistencies #170

Open JoeyStacks opened 5 years ago

JoeyStacks commented 5 years ago

It appears as though there are no events to update the tagged table when updating/destroying a tag. Ie when a tag is updated the associated records in the tagged pivot table should be updated to reflect these changes and to keep the relationship intact. In addition, if a tag is destroyed the associated records in the pivot table should be destroyed as well. Am I missing something or was this just overlooked?

rtconner commented 5 years ago

This is interesting. I never considered the idea of changing a tag string that is still in use.

Ok I like this idea though of having this library handling this seamlessly. Same with deleting.

mberneis commented 1 year ago

+1 on having Tag delete functionality which would do a cascading untag of the associated model instances