laravel assign class dynamically if condition true code example
Example: laravel assign class dynamically if condition true
<li class="nav-item {{ request()->is('blog') ? 'active' : ''}}">
<a class="nav-link " href="{{ url('blog') }}">{{ __('sentence.Blog') }}</a>
</li>