【发布时间】:2018-01-26 11:06:03
【问题描述】:
我正在尝试使用每个页面都可以访问的页眉和页脚布局设置一个简单的模板
有点像:
<html>
<body>
@layout('header')
<stuff here>
</body>
@layout('footer')
</html>
我将它们命名为 header.blade.php 和 footer.blade.php,它们位于 index.blade.php 文件中。
但是当我运行它时,它只会打印出@layout('header') & @layout('footer')
【问题讨论】: