How can I change the default active tab when a user visits https://marketplace3.laraship.com/dashboard or https://marketplace3.laraship.com/profile ?
Default is now #subscriptions_tab but I'd like to change it to #profile
1 Answers
You can do it using Actions hooks
for example in MarketplaceServiceProvider you will find the following hook
and the subscription tab set as the default tabe inside SubscriptionsServiceProvider using same hook
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.
thanks
Please login or Register to submit your answer