Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel active menu item

// 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' : '' }}"> 
Comment

laravel active nav

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

nav active in laravel

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

laravel menu active class

  <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>
Comment

PREVIOUS NEXT
Code Example
Php :: create session in php 
Php :: how to get video duration in php 
Php :: how to display array of img in wordpress 
Php :: Laravel Unable to migrate or Make Seeds 
Php :: log magento 2.4.3 
Php :: wp wc get cart item attribute 
Php :: current loggedin user laravel 
Php :: convert object to array laravel 
Php :: php see if undefined 
Php :: is php the fucking worst 
Php :: run laravel mix 
Php :: swich in php 
Php :: add new column to existing table laravel 
Php :: php set x-frame-options 
Php :: serialize() php 
Php :: get only date in laravel 
Php :: set php path in ubuntu 
Php :: php in array 
Php :: carbon add few hours 
Php :: php konstanten 
Php :: case statement in php 
Php :: check file selected in php 
Php :: php connect ms sql server 
Php :: ext-curl install php 7.2 
Php :: migrate only one table laravel 
Php :: string into integer php 
Php :: slp price php 
Php :: php array length 
Php :: undefined method JeroenNotenLaravelAdminLteHelpersMenuItemHelper::isSearchBar() 
Php :: laravel check record exists 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =