我试图先包含header.blade.php,然后再包含内容,但它的包含方式是错误的。
渲染后,HTML内容包含在头部之前。
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- include navbar / header -->
@include('site.components.header')
<!-- content -->
@yield('content')
<!-- footer -->
@include('site.components.footer')
</body>
</html>
@section
和@stop
的内容? - rap-2-h