Question and answer is powered by AnsPress.io
Anybody here who knows how to set an active class in my navbar using laravel.
I just hear about active states in laravel for this but I don’t know how to implement that in my project so please if anybody knows about active states then share your code, please.
If you using Laravel blade template, you can try this code:
{{ Request::is('admin/contact') ? 'active' : null }}