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