Support the ongoing development of Laravel.io →
Eloquent Packages

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. ($user isnt null and neither is $membership_group)

What could be causing this?

I've also noticed that swap is only changing the plan in the DB not the name (Subscriptions DB)

Thank you!

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

e4stwood e4stwood Joined 5 Dec 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.