これは非常に基本的で愚かな質問ですが、私は最後の2日間から試していますが、私のミスはどこでも検索しています。私は、ブレード構文を使用しているチュートリアルからlaravelと学習の初心者です。Laravel Blade構文@yeild( 'content')が動作しない
Web.php
Route::get('about','[email protected]');
makeController.php
class makeController extends Controller
{
public function FunFun(){
$first = 'Muhammad';
$last = 'Uzair Warsi';
return view('pages.app',compact('first'));
}}
app.blade.php
@extends('pages.funview')
@section('content')
<h1>my name is : {{$first}}</h1>
@stop
funview.blade.php
<!DOCTYPE html>
<head>
</head>
<html>
<title>HTML Tutorial</title>
<body>
<h1>this is from funview page</h1>
@yeild('content')
</body>
</html>
問題はlocalhostがすべてのものタイトルの見出しをロードし、またブレード部分の内容ではなく@yeild( 'content')を出力することです。
はあなたのポストに間違ってラベル付けなかったか、あなたのapp.bladeが含まれていませんビューとfunviewにはテンプレートが含まれていますか?それは後ろ向きです。 –