set nav link active on the basis of route laravel
snippet in php

laravel sidebar menu active

user5199

{{  request()->routeIs('news.*') ? 'active' : '' }}

set nav link active on the basis of route laravel

user8998

<li class="{{ (request()->is('admin/cities*')) ? 'active' : '' }}">