kilrizzy / active-menu by kilrizzy

Laravel link helper to detect if menu item is currently active
108
2
1
Package Data
Maintainer Username: kilrizzy
Maintainer Contact: jeffkilroy@gmail.com (Jeff Kilroy)
Package Create Date: 2016-02-23
Package Last Update: 2016-02-23
Language: PHP
License: MIT
Last Refreshed: 2024-11-18 03:02:59
Package Statistics
Total Downloads: 108
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Active Menu

Laravel link helper to detect if menu item is currently active

#Usage

<li class="{{ ActiveMenu::check(['customer']) }}"><a href="{{ url('customer') }}">Customers</a></li>

Which results in

<li class="active"><a href="{{ url('customer') }}">Customers</a></li>