jeudi 1 novembre 2018

Not working bootstrap navbar with in Laravel 5.6

in my laravel application I have sidebar menu like following,

<ul class="nav navbar-nav">
      <li class="">
      <a href="">Home</a></li>

      <li class="">
      <a href="">Page 1</a></li>
      <li><a href="#">Page 2</a></li>
      <li><a href="#">Page 3</a></li>
    </ul>

this is working with Helper.php file in app/Helper/Helper.php3

<?php

if(! function_exists('active_menu')) {
    function active_menu($currentRouteName, $requestName, $start, $finish){
        if (substr($currentRouteName,$start, $finish) == $requestName){
            return 'active';

        }else{
            return null;
        }
    }
    }

this is working fine, but now I need change above sidemenu bar class as following,

<ul class="nav nav-sidebar">

only this change but now it is not working. how can I fix this problem?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire