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>

  

posted @ 2018-02-28 22:54  生如逆旅,一苇以航  阅读(841)  评论(0编辑  收藏  举报