Breadcrumbs Default Active Tab

Laraship QuestionsCategory: TechnicalBreadcrumbs Default Active Tab
tpc asked 3 years ago
How can I change the default active tab when a user visits or ? Default is now #subscriptions_tab but I'd like to change it to #profile
1 Answers
Saeed Matar Staff answered 3 years ago
You can do it using Actions hooks
for example in MarketplaceServiceProvider you will find the following hook

\Actions::add_action('user_profile_tabs', [Marketplace::class, 'show_profile_tabs_items'], 11);

and the subscription tab set as the default tabe inside SubscriptionsServiceProvider using same hook
\Actions::add_action('user_profile_tabs', [Subscription::class, 'show_profile_subscription_tabs'], 10);

so you can add yours and do what works for your case.