-
Looks like v4 had addTags/removeTags but as of v5, they've been removed? Any reason as-to why? https://github.com/spatie/laravel-newsletter/blob/4.11.0/src/Newsletter.php#L154-L185 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, I had to extend the MailChimpDriver.php to make it work again. Update: You can use the subscribeOrUpdate method and pass ['tags'=>['tag1','tag2']] into it. For removing tags, you can clear tags with ['tags'=>[]] and add all the relevant tags back in afterwards. |
Beta Was this translation helpful? Give feedback.
-
I just used the built in tag feature to rewrite the tags every time I edit
the subscriber. Kinda sucks as a solution and prone to errors. I'm
integrating with Mailcoach.
You can add the AddTag function back from the previous version if you're
using Mailchimp. It doesn't work with Mailcoach.
…On Sat, Sep 16, 2023, 7:50 AM Ricky Poon ***@***.***> wrote:
what did you do to add the tags? thanks
—
Reply to this email directly, view it on GitHub
<#304 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHTXBVB4NZR524AKPQCD23X2W4B5ANCNFSM6AAAAAAZG4POBY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Thanks, I just ended up extending to add back addTags/removeTags methods