title: Redirect back to a specific tab pane in Laravel
body: <p>I have a index view with 5 tabs. When I click on <strong>Hardware</strong> tab, this is what I see.</p>
  <p><a href="https://i.stack.imgur.com/RxFt5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RxFt5.png" alt="enter image description here" /></a></p>
  <p>When click on create, I launch this Modal</p>
  <p><a href="https://i.stack.imgur.com/u7MsO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7MsO.png" alt="enter image description here" /></a></p>
  <p>As soon as I submit, I got an alert notification, and everything is store fine.</p>
  <p><a href="https://i.stack.imgur.com/lcpzb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lcpzb.png" alt="enter image description here" /></a></p>
  <p>But it direct me to my first tab.
  How can I redirect back to my second tab ?</p>
  <hr />
  <h1>Store Function</h1>
  <pre><code>public function store() {
  
          $inputs = Input::all();
          unset($inputs['_token']);
  
  
          $cpe_mac = $inputs['mac1'].$inputs['mac2'].$inputs['mac3'].$inputs['mac4'].$inputs['mac5'].$inputs['mac6'];
  
          $cpe = [];
  
          $cpe['cpe_mac'] = $cpe_mac;
          $cpe['bandwidth_max_up'] = (int)$inputs['max_up'];
          $cpe['bandwidth_max_down'] = (int)$inputs['max_down'];
  
          $json = json_encode($cpe);
  
          $url = 'http://172.16.139.129:1234/vse/vcpe';
          $ch = curl_init($url);
          curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
          curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
          curl_setopt($ch, CURLOPT_POST, 1);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
          $result = curl_exec($ch);
          curl_close($ch);
  
  
          $result_json =  json_decode($result, true);
  
          $id = $inputs['account_id'];
  
  
          if ( $result_json['status'] == '200') {
          return Redirect::to('/account/'.$id.'/#hardware') -&gt;with('success','The CPE was created succesfully!');
      } else {
          return Redirect::to('/account/'.$id.'/#hardware') -&gt;with('error', $result_json['message']);
      }
  
      } 
  </code></pre>
  <hr />
  <h1>Tab.blade.php</h1>
  <pre><code>&lt;!-- Nav tabs --&gt;
    &lt;ul class=&quot;nav nav-tabs&quot;&gt;
      &lt;li class=&quot;&quot;&gt;&lt;a href=&quot;#details&quot; data-toggle=&quot;tab&quot;&gt;&lt;strong&gt;Details&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class=&quot;&quot;&gt;&lt;a href=&quot;#hardware&quot; data-toggle=&quot;tab&quot;&gt;&lt;strong&gt;Hardware(s)&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class=&quot;&quot;&gt;&lt;a href=&quot;#access-methods&quot; data-toggle=&quot;tab&quot;&gt;&lt;strong&gt;Access Methods&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class=&quot;&quot;&gt;&lt;a href=&quot;#linked-networks&quot; data-toggle=&quot;tab&quot;&gt;&lt;strong&gt;Linked Networks&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class=&quot;&quot;&gt;&lt;a href=&quot;#options&quot; data-toggle=&quot;tab&quot;&gt;&lt;strong&gt;Options&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  
    &lt;!-- Tab panes --&gt;
    &lt;div class=&quot;tab-content mb30&quot;&gt;
  
      @include('account.show.details')
      @include('account.show.hardwares')
      @include('account.show.access-methods')
      @include('account.show.linked-networks')
      @include('account.show.options')
  
    &lt;/div&gt;
  </code></pre>