Basically I have this problem which keeps occuring.
Once a user subscribes, it all works fine. He can cancel/change subscription no problem.
However, once they have changed their subscription once, I cant call swap or cancel without it throwing an error on null
Call to a member function cancelNow() on null Call to a member function Swap() on null
Both mean that $user->subscription($membership_group) = null.
What could be causing this?
This is the solution I found, quite ugly! I will report this bug.
Anyway works for the moment...
Also I guess this is already fixed: https://github.com/laravel/cashier/commit/1e87a60f1bf5c8981730d2481350f74fccaf0947#diff-dde586b4ea0798ea4a467b9eba070a7e
Just waiting on a release.