Answers for "laravel 8 active sidebar"

PHP
0

set nav link active on the basis of route laravel

<li class="{{ (request()->is('admin/cities*')) ? 'active' : '' }}">
Posted by: Guest on December-03-2020
0

laravel assign active based on route name

<li class="{{ Request::is('products*') ? 'active' : '' }}">

    <a href="{{ route('products.index') }}"><span>Products</span></a>

</li>
Posted by: Guest on December-23-2020

Browse Popular Code Answers by Language