Uso de segmento en Laravel 8
Request::segment(1) == 'course' ? 'side-menu--active' : ''
kinjal suryavanshi
Request::segment(1) == 'course' ? 'side-menu--active' : ''