Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TECreasey's avatar

Managing Multiple Subscriptions with Laravel 5.2 and Cashier 6

Hi,

I am looking for advice.

I am building an application that allows a customer to purchase hosting. I want to allow a customer to purchase multiple hosting services.

For example, I have a Lite and a Pro Hosting package.

If a customer purchases two Lite Hosting Packages when trying to cancel one using the below code:

$user->subscription('main')->cancel();

How can I select which subscription I want to cancel? If I cancel the main subscription it only cancels the one that was created first. I want to be able to specify which subscription of the two.

Am I making it complicated by having multiple subscriptions with the same name?

0 likes
0 replies

Please or to participate in this conversation.