我想在单个页面中包含一个 css 所有 css 和 js 并将其加载到所有页面中。现在如果我想在欢迎页面中包含 bootstrap.css 和 bootstrap.js 我已经包含在 welcome.blade.php 页面中,如果我想要添加另一个页面我也包含在 second.blade.php 页面中。我想将它包含在母版页中
<link href="{{ asset('css/bootstrap.css') }}" rel="stylesheet">
原文由 user3386779 发布,翻译遵循 CC BY-SA 4.0 许可协议
板条箱 header.blade.php
并像这样使用 First extends header Second Section of your content