Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel刀片:使用show覆盖部分_Laravel_Blade_Laravel Blade - Fatal编程技术网

Laravel刀片:使用show覆盖部分

Laravel刀片:使用show覆盖部分,laravel,blade,laravel-blade,Laravel,Blade,Laravel Blade,我有默认的刀片,它将有3个部分和一个产量如下所示的内容 <div id="wrapper"> @show @section('sidemenu') @include('partials.admin_sidemenu') <div id="page-wrapper" class="gray-bg">

我有默认的刀片,它将有3个部分和一个产量如下所示的内容

<div id="wrapper">  
            @show   
                @section('sidemenu')        
                    @include('partials.admin_sidemenu')             

            <div id="page-wrapper" class="gray-bg">
                @show   
                    @section('navheader')
                        @include('partials.admin_navheader')    

                @show
                    @yield('content')


                @show   
                    @section('footer')                          
                        @include('partials.admin_footer')

            </div>
        </div>  
这不是写页脚内容太多。。。这是个问题

我该怎么办

感谢您提前

您忘了在节声明的末尾添加:@show:

@section('footer')                          
    @include('partials.admin_footer')
@show

最好使用不同的布局来扩展layout.default,并在其中包含不同的部分。@num8er..页眉和菜单部分被覆盖..页脚除外..发生原因我不知道尝试清理视图缓存:php artisan视图:清除
@section('footer')                          
    @include('partials.admin_footer')
@show