You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I delete tags , the "pivotDetached" is fired and I'm able to detect which tags have been removed.
The problem is when you attach tags. The "pivotAttached" event is fire for each added tag.
It occurs because in "HasTags" trait into "syncTagIds" method you make a loop to add tag one by one.
Into the following code , it will necessary to remove loop.
Hello,
I'm using your package and I need to detect changes that occurs with tags.
For that I'm using https://github.com/mikebronner/laravel-pivot-events package and it works very well.
When I delete tags , the "pivotDetached" is fired and I'm able to detect which tags have been removed.
The problem is when you attach tags. The "pivotAttached" event is fire for each added tag.
It occurs because in "HasTags" trait into "syncTagIds" method you make a loop to add tag one by one.
Into the following code , it will necessary to remove loop.
Regards
The text was updated successfully, but these errors were encountered: