How to handle Bootstrap tab panel using get parameters or routes in Laravel 5? -


i using tab panel of bootstrap account settings. see image below..enter image description here

the link of settings localhost/settings .. need access particular tab. there 2 options: 1 use parameters localhost/settings?tab=deactivation , second use urls localhost/settings/deactivation defined localhost/settings/{tab} in route.php.. method best?

the problem 2nd 1 when ever change tab, url remains same. i.e. changing tab deactivation password not result in making url localhost/settings/password instead remain same localhost/settings/deactivation. in case of form validation failure move deactivation tab. solution of problem?

form validation failure causes problem parameters in 1st case. how can solve problem?

is there other better approach it?

i remember being able using anchor tags localhost/settings#deactivation.

if went variable route, specify tab localhost/settings?tab=deactivation, , pass view, , give tab 'active' class depending on value.

i wouldn't use routing set active tab, seems overkill.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -