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

oakydev's avatar

Implementation: Subscription

Hello guys!

I am currently working on a project in Laravel where the end user has the option to purchase a subscription.

To process the payment I am using the Stripe PHP library.

After the user decides to subscribe, he has the possibility to create systems. These are then available through a subdomain / own domain. The package archtechx/tenancy is used for this.

My question however relates to the following:

Depending on the subscription, the user gets certain features. So for example the standard subscription limits the users to a maximum of 5, whereas the premium subscription allows unlimited users.

So far so good. The question I have now is, what is the best way to build the structure so that the user can only really create the number of users that are intended for the subscription?

0 likes
0 replies

Please or to participate in this conversation.