Skip to content
Advertisement

Setting Bootstrap navbar active class in Laravel 5

I’ve been wondering around looking for solutions, but can’t really understand especially when creating helpers. I’m new in Laravel and I want a simple or if not a detailed instruction on how to set the active class for my bootstrap navbar.

Here’s what I’ve done so far, but can’t get it done:

JavaScript

EDIT

Setting class="active" will make all nav-pills active. The intended effect is that only the li of the current page have the active class.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement