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: 2020-08-13 22:58:36 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>