我是laravel的新手,我正在尝试创建布局,但是当我在浏览器中查看它显示的所有内容时,我的@yield
无法正常工作,但它并没有显示来自{{1 }}
dashboard.blade.php
dashboard.blade.php
main.blade.php
@extends('layouts.main')
@section('content')
<div class="page-title">
<h1>Hello World</h1>
</div>
@endsection
包括/ header.blade.php
@include('includes.header')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
@yield('content')
</div>
</div>
<!-- /page content -->
web.php
<!DOCTYPE html>
<html>
<head>
<!-- My CSS Links -->
</head>
DashboardController.php
Route::get('/dashboard','DashboardController@index');
提前致谢:)。