title: Laravel 4 - Extending a section declared in a master template more than once
body: <p>I have a scenario where I have a master template which defines a header section. It looks like this...</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  @section('header')
      {{ HTML::style('css/planesaleing.css') }}
      {{ HTML::script('js/jquery-1.10.1.js') }}
      {{ HTML::script('js/search_Bar.js') }}
  @show
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="planesaleing_page"&gt;
          &lt;header&gt;
  @yield('header_bar')
  @yield('nav_bar')
  @yield('search_bar')
          &lt;/header&gt;
          &lt;div class="main_page"&gt;
                  // Some more code
          &lt;/div&gt;
  @yield('footer')
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As you can see, I have several child views (e.g. nav_bar and search_bar). Each of these child views has an accompanying .js file. So I would like to extend the 'header' section in nav_bar like this...</p>
  
  <pre><code>@section('header')
  @parent
      {{ HTML::script('js/anotherjs.js') }}
  @stop
  </code></pre>
  
  <p>and then again in search_bar like this:</p>
  
  <pre><code>@section('header')
  @parent
      {{ HTML::script('js/yetanotherjs.js') }}
  @stop
  </code></pre>
  
  <p>The intention is that the final outputted html file would look like this:</p>
  
  <p>
      @section('header')
          {{ HTML::style('css/planesaleing.css') }}
          {{ HTML::script('js/jquery-1.10.1.js') }}
          {{ HTML::script('js/search_Bar.js') }}
          {{ HTML::script('js/anotherjs.js') }}
          {{ HTML::script('js/yetanotherjs.js') }}
      @show
      </p>
  
  <p>However, only the first one actually extends the header, all others after this are seemingly ignored. Is there anyway to use multiple extensions?</p>
  
  <p>Any advice - much appreciated.</p>