@CG Well what is it you’re wanting to change?
Aug 2, 2018
6
Level 1
Changing controller method
Hello , I want to change the store method in Settings/Subscription/PlanController , In the docs I've seen the swap method I have tried it nothing happend : Spark::swap('PlanController@store', function ($request) {// new code} I'm not sure that this is the right way of doing it I've seen some examples , and I'm a bit confused on how to use it
Level 80
@cg you’d be better off adding a listener to the UserSubscribed event that adds the credits, rather than trying to re-write Spark’s core registration method.
Please or to participate in this conversation.