title: Make active class for parent and subs in Laravel
body: <p>I have menu like this:</p>
  
  <pre><code>&lt;li class="treeview"&gt;
          &lt;a href="#"&gt;&lt;i class="fa fa-comment"&gt;&lt;/i&gt; &lt;span&gt;Comments&lt;/span&gt;
              &lt;span class="pull-right-container"&gt;
                  &lt;i class="fa fa-angle-left pull-right"&gt;&lt;/i&gt;
              &lt;/span&gt;
          &lt;/a&gt;
          &lt;ul class="treeview-menu"&gt;
              &lt;li&gt;&lt;a href="http://blog.dev/member/comments"&gt;All Comments&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://blog.dev/member/comments?q=me"&gt;My Comments&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://blog.dev/member/comments?q=approved"&gt;Approved&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="http://blog.dev/member/comments?q=disapproved"&gt;Disapproved&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>All i want is when i click on submenu for example "My comments" menu, the Comments menu and My Comments active will have a class like this </p>
  
  <pre><code>    &lt;li class="active"&gt;&lt;a href="#"&gt;&lt;i class="fa fa-comment"&gt;&lt;/i&gt; &lt;span&gt;Comments&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li class="active active-sub"&gt;&lt;a href="http://blog.dev/member/comments?q=me"&gt;My Comments&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>so how can i make this can be happen? Thanks</p>