laravel active menu link code example
Example 1: laravel sidebar menu active
{{ request()->routeIs('news.*') ? 'active' : '' }}
Example 2: laravel active menu item
// check using uri
<li class="{{ request()->is('sites/*/edit') ? 'active' : '' }}"
// or,
// check using route name
<li class="{{ request()->routeIs('sites/*/edit') ? 'active' : '' }}"