title: how to add class active in menu laravel if use treeview
body: <p>I am having trouble to adding class "menu-open" and "active" if I use a Multi-level menu.</p>
  
  <p>I succeeded in adding active class in single menu.</p>
  
  <p>Single Menu</p>
  
  <pre><code>&lt;li class="nav-item"&gt;
        &lt;a href="{{ route('listTemuan') }}" class="nav-link {{ Route::currentRouteNamed('listTemuan') ? 'active' : '' }}"&gt;
          &lt;i class="fa fa-table nav-icon"&gt;&lt;/i&gt;
          &lt;p&gt;
            List Temuan
          &lt;/p&gt;
        &lt;/a&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>I don't understand how to make it in Multi-level menu.</p>
  
  <p>This is for my Multi-level menu:</p>
  
  <pre><code>&lt;li class="nav-item has-treeview"&gt; //I want to add class menu-open in here
        &lt;a href="#" class="nav-link"&gt; //I want to add class active in here
          &lt;i class="fa fa-gear nav-icon"&gt;&lt;/i&gt;
          &lt;p&gt;
            Setting
            &lt;i class="right fa fa-angle-left"&gt;&lt;/i&gt;
          &lt;/p&gt;
        &lt;/a&gt;
        &lt;ul class="nav nav-treeview"&gt;
          &lt;li class="nav-item"&gt;
            &lt;a href="{{ route('UserPekerja') }}" class="nav-link {{ Route::currentRouteNamed('UserPekerja') ? 'active' : '' }}"&gt;
              &lt;i class="fa fa-circle-o nav-icon"&gt;&lt;/i&gt;
              &lt;p&gt;User Pekerja&lt;/p&gt;
            &lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
  </code></pre>