title: How to highlight current menu item in bootstrap in Laravel?
body: <p>working with laravel 5.6 and I have following sidebar.blade.php file sidebar.blade.php</p>
  
  <pre><code>&lt;style type="text/css"&gt;
  .list-group {
  
       margin:auto;
       float:left;
       padding-top:20px;
      }
      .lead {
  
       margin:auto;
       left:0;
       right:0;
       padding-top:10%;
      }
  &lt;/style&gt;
  
   &lt;div class="list-group"&gt;
  
      &lt;a href="#" class="list-group-item active"&gt;&lt;i class="fa fa-key"&gt;&lt;/i&gt; &lt;span&gt;App Settings&lt;/span&gt;&lt;/a&gt;
      &lt;a href="{{route('vehicles.myads')}}" class="list-group-item" &gt;&lt;i class="fa fa-credit-card"&gt;&lt;/i&gt; &lt;span&gt;My Ads&lt;/span&gt;&lt;/a&gt;
      &lt;a href="#" class="list-group-item"&gt;&lt;i class="fa fa-question-circle"&gt;&lt;/i&gt; &lt;span&gt;Support&lt;/span&gt;&lt;/a&gt;
      &lt;a href="#" class="list-group-item"&gt;&lt;i class="fa fa-arrow-circle-o-left"&gt;&lt;/i&gt; &lt;span&gt;Sandbox Account&lt;/span&gt;&lt;/a&gt;
      &lt;a href="#" class="list-group-item"&gt;&lt;i class="fa fa-book"&gt;&lt;/i&gt; &lt;span&gt;QuickStart Overview&lt;/span&gt;&lt;/a&gt;
      &lt;a href="#" class="list-group-item"&gt;&lt;i class="fa fa-compass"&gt;&lt;/i&gt; &lt;span&gt;Documentation&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;script&gt;
      $(document).ready(function() {
  
  $('.list-group-item').click(function(e) {
      e.preventDefault();
      $('.list-group-item').removeClass('active');
      $(this).addClass('active');
    });
  });
    &lt;/script&gt;
  </code></pre>
  
  <p>now I need highlight current menu item in above sidebar.blade.php file how can do it? current jquery codes is working only highlight in same page but when I go using link other page current link it is not highlight (as an example if I go to myads link from home page in myads page myads menu is not highlight)</p>
  
  <p><strong>Edit</strong>
  hope to use this sidemenu blade file as include file with other blade files</p>