title: Laravel 8 yield function
body: <p>I am just updating stuff to Laravel 8 from 7 and I am trying something simple.</p>
  <p>My /layouts/app file is</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;{{ str_replace('_', '-', app()-&gt;getLocale()) }}&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
      &lt;meta name=&quot;csrf-token&quot; content=&quot;{{ csrf_token() }}&quot;&gt;
      &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;16x16&quot; href=&quot;{{ asset('siteimages/favicon.ico') }}&quot;&gt;
      &lt;title&gt;Daddies Control&lt;/title&gt;
  
      &lt;!-- Fonts --&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&amp;display=swap&quot;&gt;
  
      &lt;!-- Styles --&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;{{ asset('css/app.css') }}&quot;&gt;
  
      &lt;!-- Scripts --&gt;
      &lt;script src=&quot;{{ asset('js/app.js') }}&quot; defer&gt;&lt;/script&gt;
      @yield('morehead')
     &lt;/head&gt;
     &lt;body class=&quot;font-sans antialiased&quot;&gt;
      &lt;div class=&quot;min-h-screen bg-gray-100&quot;&gt;
          @include('layouts.navigation')
  
          &lt;!-- Page Heading --&gt;
          &lt;header class=&quot;bg-white shadow&quot;&gt;
              &lt;div class=&quot;mx-auto py-6 px-4 sm:px-6 lg:px-8&quot;&gt;
                  @yield('header')
              &lt;/div&gt;
          &lt;/header&gt;
  
          &lt;!-- Page Content --&gt;
          &lt;main&gt;
              @yield('content')
          &lt;/main&gt;
      &lt;/div&gt;
      @yield('morescripts')
     &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  <p>my test dashboard file is:</p>
  <pre><code>@extends('layouts.app')
  
  @section('morehead')
      &lt;link rel=&quot;stylesheet&quot; href=&quot;{{ asset('css/stt.css') }}&quot;&gt;
  @endsection
  
  @section('header')
  dashboard
  @endsection
  
  @section('content')
  some content
  @endsection
  
  @section('morescripts')
   &lt;hr/&gt;
   a script
  @endsection
  </code></pre>
  <p>The section 'morescripts' is being ignored completely. I use this to add specific datascript (such as datatables).</p>