Setting Bootstrap navbar active class in Laravel 5

前端 未结 13 2057
温柔的废话
温柔的废话 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 17:08

    use Request::is('[level]') ? 'active' : '' In case of multilevel, use:

    Request::is('[level]', '[level]/*') ? 'active' : ''

提交回复
热议问题