laravel处理菜单保持的方法:
<!-- 左侧菜单区域 --> <div class="col-md-3"> @section('leftmenu') <div class="list-group"> <a href="{{url('student/index')}}" class="list-group-item {{Request::getPathInfo()!='/student/create'?'active':''}} ">学生列表</a> <a href="{{url('student/create')}}" class="list-group-item {{Request::getPathInfo()=='/student/create'?'active':''}} ">新增学生</a> </div> @show </div>