Php Laravel@布局问题

Php Laravel@布局问题,php,layout,laravel,Php,Layout,Laravel,我正试图做一个简单的模板设置与页眉和页脚布局,将被访问的每一页 有点像: <html> <body> @layout('header') <stuff here> </body> @layout('footer') </html> 我把它们命名为header.blade.php和footer.blade.php,这在index.blade.php文件中 但是当我运行它时,它只打印@layout'header'和@layout'foot

我正试图做一个简单的模板设置与页眉和页脚布局,将被访问的每一页

有点像:

<html>
<body>
@layout('header')
<stuff here>
</body>
@layout('footer')
</html>
我把它们命名为header.blade.php和footer.blade.php,这在index.blade.php文件中


但是当我运行它时,它只打印@layout'header'和@layout'footer'

我回答了我自己的问题,你必须提供@yield'yieldname'