Answers for "laravel add active class checking url"

PHP
1

laravel sidebar menu active

{{  request()->routeIs('news.*') ? 'active' : '' }}
Posted by: Guest on August-16-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

Code answers related to "laravel add active class checking url"

Browse Popular Code Answers by Language