Setting Bootstrap navbar active class in Laravel 5

前端 未结 13 2059
温柔的废话
温柔的废话 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:57

    Request::path() returns the request uri, for example: http://localhost/programs , will return programs, so you can do this:

     
  • Programs
提交回复
热议问题