kilrizzy / active-menu by kilrizzy

Laravel link helper to detect if menu item is currently active
108
2
2
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-04-22 03:03:19
Package Statistics
Total Downloads: 108
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
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>