Setting Bootstrap navbar active class in Laravel 5

前端 未结 13 2045
温柔的废话
温柔的废话 2020-12-23 16:34

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 detaile

13条回答
  •  时光取名叫无心
    2020-12-23 16:51

    This is simple: to get your links to be active when using bootstrap, all you need is an if statement inside the class link, for instance: i have my current url as http://example.com/home

     
  • Home

    and you are good to go.

提交回复
热议问题