laravel-dashboard icon indicating copy to clipboard operation
laravel-dashboard copied to clipboard

Menu active status not working?

Open LarsKerff opened this issue 8 years ago • 3 comments

How did you make the active statusses (for menu items and dropdowns) in your middleware menu? It's not working at my menu.

Thanks

LarsKerff avatar Oct 14 '16 08:10 LarsKerff

Hi @Holox , the demo website code is available in GitHub. You can read my middleware code at https://github.com/letrunghieu/laravel-dashboard-demo/blob/master/app/Http/Middleware/Dashboard.php

letrunghieu avatar Oct 14 '16 10:10 letrunghieu

Hi, thanks. I've made the same way my middleware menu. However it's not getting any active status when I'm on a page. How did you do that?

LarsKerff avatar Oct 14 '16 14:10 LarsKerff

It's so strange. The package already supports active menus. The route and url_def elements will decide whether a menu is active or not. Can you post your middleware code here?

letrunghieu avatar Oct 14 '16 14:10 letrunghieu