i'd just check the user obßn t h e ebvent fired whether users 'created_at' and 'updated_at' is the same (= new user) or not (exsting user).
Differentiate between a new user subscribing and an existing user on a free plan subscribing?
When a brand new user registers and subscribes to your site for the first time, and when an existing user who's been on a free plan subscribes, the UserSubscribed event is fired.
Is there a way to differentiate between the two cases? I would like additional code to run in the case of an existing user on a free plan subscribing, but since they're both firing the same event I'm not sure how to respond to one but not the other.
Does Spark have this sort of functionality built in, or will this require custom code? Has anyone implemented anything like this? All feedback is very appreciated, thank you!
If it makes a difference I'm using Laravel 5.2 and Spark 1.0
Please or to participate in this conversation.