Laravel active menu item for url included parameters
There is also the following if you have named your route :
<li class="{{ Request::routeIs('admin') ? 'active' : '' }}">...</li>
Inspired from here
Use is()
method. For example:
<li class="{{ request()->is('sites/*/edit') ? 'active' : '' }}"
I am currently using Laravel 5.6.* and my solution is:
<a href="#" class="nav-link {{ request()->is('users*') ? 'active' : '' }}">Users</a>