且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

包括标头放在错误的位置Laravel 4

更新时间:2023-02-05 10:30:22

在创建可以包含某些内容的部分时,还需要像这样将其停止:

When you create a section where you can include something , you need to stop it also like:

  @section('name of section here')
      //Your customized content for this section.
  @stop

虽然使用@show立即输出该内容,但它结束了当前节并产生了该节.屈服意味着这是该部分内容将要输出的点.

While using @show immediately outputs that content that is it ends the current section and yields it. Yielding means this is the point the content of the section will be output.

  @section('name of section here')
      //Your customized content for this section.
  @show