“Menu Laravel Class Active” Respostas de código

Item do menu ativo do Laravel

// check using uri
<li class="{{ request()->is('sites/*/edit') ? 'active' : '' }}"
 // or, check using route name
<li class="{{ request()->routeIs('sites/*/edit') ? 'active' : '' }}"
  // or, using segment
<li class="{{ (request()->segment(2) == 'cities') ? 'active' : '' }}"> 
Fahim Foysal

Menu da barra lateral do Laravel

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

Laravel ativo Nav

<a class="list-item-link {{ Route::currentRouteName() === 'admin.ads.index' ? 'active' : '' }}" >
Naif Sameer Saleh

Menu Laravel Class Active

  <li class="profile__link__item">
            <a class="profile__link profile__link__address {{ (request()->routeIs('web.address.index')) ? 'activated ' : '' }}"
               href="{{ route('web.address.index') }}">Адреса</a>
        </li>
Shadow

NAV ativo em Laravel

//  check using route name
<li class="{{ request()->routeIs('city/create') ? 'active' : '' }}"
Ab R Rakib

Respostas semelhantes a “Menu Laravel Class Active”

Perguntas semelhantes a “Menu Laravel Class Active”

Mais respostas relacionadas para “Menu Laravel Class Active” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código