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>
Programing Coderfunda March 03, 2022 Laravel, php No comments
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>
0 comments:
Post a Comment
Thanks