Answers for "is route active laravel"

PHP
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
0

laravel assign active based on route name

<li class = "{{ set_active('admin/users') }}">
    <a href="{{ url('/admin/users/') }}">Users</a>
</li>
Posted by: Guest on December-23-2020

Browse Popular Code Answers by Language