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 :: get_template_directory_uri 
Php :: turn on php errors 
Php :: a2dismod 
Php :: Non-static method BarryvdhDomPDFPDF::loadView() should not be called statically 
Php :: laravel list all routes 
Php :: php what type of variable is it 
Php :: laravel migrate fresh and seed 
Php :: wordpress if thumbnail show else 
Php :: composer install ignore platform reqs 
Php :: execute artisan command from route 
Php :: request type PHP $SERVER 
Php :: php increase number in file by one 
Php :: laravel debugbar 
Php :: php time format am pm 
Php :: wordpress get post thumbnail url 
Php :: how to set ist in php 
Php :: laravel redirect external url 
Php :: php replace space with dash 
Php :: get current url in codeigniter 
Php :: get all post values in php 
Php :: blade comment 
Php :: compare hashed password and a unhashed password in laravel 
Php :: php time limit 
Php :: laravel clear everything 
Php :: seed one table laravel 
Php :: datetime to string php 
Php :: curl error handling 
Php :: php file_get_contents url 
Php :: redirect in codeigniter 
Php :: laravel eloquent get 10 records 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =