2017-07-11 3 views
1

これまではうまくいきましたが、すべての作者ファイルを更新しましたが、今はLaravel Bladeに問題があります。 Laravelのバージョンは5.4.28です。Laravel Blade、デフォルトの部分が正常に動作しなくなったようです。

私は(calculator/leopardgeckos/partials/ogtags.blade.php)この部分を持っている:

<link rel="canonical" href="https://reptimatecalculator.com" /> 
<meta property="fb:app_id" content="1795251550755689"> 
<meta property="og:url" content="https://reptimatecalculator.com" /> 
<meta property="og:type" content="website" /> 
<meta property="og:locale" content="en_GB" /> 
<meta property="og:title" content="ReptiMate - Leopard Gecko &amp; African Fat Tail Gecko Genetics Calculator" /> 
<meta property="og:description" content="ReptiMate Calculator was built from the ground up to create an accurate genetics calculator for Leopard Geckos & African Fat Tailed Geckos. You'll get a list of outcomes including percentage chance of recessive genes being carried over, a punnet square of genetics and also a percentage table denoting likelihood of certain combos hatching." /> 
<meta property="og:image" content="{{ url('images/reptimate-og-image.jpg') }}" /> 

そして、私はそうのように私のレイアウトファイルでそれを呼び出すようにしようとしている:

@yield('ogtags', View::make('calculator.leopardgeckos.partials.ogtags')) 

だから、何もogtagsセクションで設定されていない場合他のテンプレートファイルでは、デフォルトではこの部分ファイルになります。

しかし、どのようなことが実際にやっていると、画面にこれを印刷している:

enter image description here

私は私のエラーを引き起こしているものをうまくすることはできませんが、これは今しばらくの間、正常に動作しています。他の誰かがこれを見ているのですか?

+0

@yield('ogtags', View::make('calculator.leopardgeckos.partials.ogtags')) 

へ:

私はこの行を変更することで、この問題を解決するために管理してきました。 https://github.com/laravel/framework/pull/19884 – David

+0

@David上記のように、私は今日更新しました。これは今ではこの問題を抱えています –

+0

多分私はキャッシュの等を消去する必要があります –

答えて

1

EDIT:

テイラーはフレームワークへの更新をタグ付けしているように私は今、これを更新しています。以下はhttps://github.com/laravel/framework/pull/19643

私のような2番目のパラメータとして(まだテストしていない)可能性がまだ動作しますが、あなたはViewView::makeを渡すことができるはず - v5.4.28の変化は、ここで参照されている"Escape default value passed to @yield directive"と指摘がありました私の元の質問に今問題はありません。彼らは、修正を受け取るために、最新のlaravelに更新してください、それが渡されたので、コンテンツエスケープされ得るために追加

@yield('ogtags', new Illuminate\Support\HtmlString(view('calculator.leopardgeckos.partials.ogtags'))) 
関連する問題