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

bufferoverflow's avatar

Multi-price subscription with Laravel Spark

Hi,

I have implemented the latest version of Spark in my SaaS app. All working smooth.

The problem is that recently, we allow our users to purchase additional teams and seats, and I have implement a multi-price subscription.

Example

// Choose number of teams (2 in this example) and submit form
// Then in the controller I get the Spark default subscription and add the price id and quantity

$user->subscription('default')->addPrice('price_additional_team', 2)

After doing this, I can see in the database that the subscription was updated and now includes 2 items. But if I go to the default Spark billing page, it's broken. It does not show the selected base plan. It's just empty.

Anyone faced this issue? Can this be customized?

Thanks

0 likes
0 replies

Please or to participate in this conversation.