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

pSouper's avatar

Spark Billing nav still shown for team members

I may have misunderstood spark but when using team-billing, a team "member" shouldn't have any "free trial" or "billing" applied to thier account right?

I have team billing and expect only the "owner" to be charged for the number of teams and/or members they have, and none of the members should be privvy to any billing info.

Is it a case of some settings somewhere OR adding a few @can's OR something that's just not possible?

0 likes
3 replies
steve_laracasts's avatar
Level 7

Good catch, might have to sort this out myself at some point.

I haven't done it, but you can access helper methods that will get you started configuring this how you would like it to work:

if ($user->onTeam($team)) { ... }

Note: When you create a new application using spark new, all of the Spark views are automatically exported to your application's resources/views/vendor/spark directory. You may customize any of these views as needed. The won't be overwritten when you upgrade to the next version of Spark.

1 like
rchase's avatar

Confusing yeah, I have team billing as well, but billing per team not per member. Anyways, when you log in as a team member, it is not only reminding you of a Team trial, but also USER trial.

I got around this by hiding all the trial notices

resources > views > vendor > spark > settings > subscription > trial-expiration-notice.blade.php

HTML commented it out:

<!-- <div class="alert alert-warning mb-4" v-if="subscriptionIsOnTrial">
    <?php echo __('You are currently within your free trial period. Your trial will expire on :date.', ['date' => '<strong>{{ trialEndsAt }}</strong>']); ?>
</div>
-->

resources > views > vendor > spark > nav > subscription > subscriptions.php

HTML commented it out:

<!-- @if (Auth::user()->onTrial())
    <!-- Trial Reminder -->
    <h6 class="dropdown-header">{{__('Trial')}}</h6>

    <a class="dropdown-item" href="/settings#/subscription">
        <i class="fa fa-fw text-left fa-btn fa-shopping-bag"></i> {{__('Subscribe')}}
    </a>

    <div class="dropdown-divider"></div>
@endif

 @if (Spark::usesTeams() && Auth::user()->ownsCurrentTeam() && Auth::user()->currentTeamOnTrial())
    <!-- Team Trial Reminder -->
    <h6 class="dropdown-header">{{__('teams.team_trial')}}</h6>

    <a class="dropdown-item" href="/settings/{{ Spark::teamsPrefix() }}/{{ Auth::user()->currentTeam()->id }}#/subscription">
        <i class="fa fa-fw text-left fa-btn fa-shopping-bag"></i> {{__('Subscribe')}}
    </a>

    <div class="dropdown-divider"></div>
@endif
-->

1 like
steve_laracasts's avatar

Great - glad you have something working and thank you for coming back to share your results :)

1 like

Please or to participate in this conversation.