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

TantraGyan's avatar

Configuring Free Plan for User

I can see in SparkServiceProvider that there is an option for a Free Plan as follows:

Spark::freePlan()
            ->features([
                'First', 'Second', 'Third'
            ]);

The problem is I am not able to understand how do I subscribe an user to a free plan and not to a trial as soon as they register ? There is some lack of documentation on that part I feel. The use-case is "An user can be subscribed to a Free plan for any prolonged time which they want. (It's like 3 projects for free and then you need to have a paid plan!!!)"

0 likes
1 reply
EventFellows's avatar
Level 16

Technically the free plan on Spark is no plan. So any user who is registered and has not paid plan has a free plan.

You can check that behaviour if you dd() a user without a plan like this.

dd($user->sparkPlan());
1 like

Please or to participate in this conversation.