Remove Manage Subscription from tenant menu

I have a multi-tenant application and I'm using Laravel Spark for billing.

In my AppPanelProvider I have the following:
->tenantMenuItems([
    'register' => MenuItem::make()
        ->label('Register New Website'),
    'profile' => MenuItem::make()
        ->label('Edit Website'),
    'subscription' => MenuItem::make()
        ->label('Manage subscription')
        ->url('/billing')
        ->icon('heroicon-s-credit-card')
        ->visible(false),
])
->userMenuItems(
    [
        'subscription' => MenuItem::make()
            ->label('Manage subscription')
            ->url('/billing')
            ->icon('heroicon-s-credit-card'),
    ]
)


No matter what I do I can't seem to get the tenantMenuItem for managing subscription to go from the front end (screenshot showing what I mean). I have it under userMenuItems, which is where I want it but I've tried the following and I can't get rid of it:
  1. Remove the code from tenantMenuItems, no impact
  2. Set the visibility to false, no impact
Does anyone have any other ideas about how to remove the entry in the tenant menu?
image.png
Solution
Yes, probably Spark... Did you create the /billing route by yourself?

You may want to try commenting this line in you Panel:
->tenantBillingProvider(new SparkBillingProvider());
and see if the link is still present...
Was this page helpful?