kilrizzy/active-menu

Laravel link helper to detect if menu item is currently active

dev-master 2016-02-23 14:29 UTC

This package is not auto-updated.

Last update: 2024-11-15 19:24:19 UTC


README

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>