title: Laravel @include and @yield blade
body: <p>I'm currently using the Laravel Blade template engine to generate pages. I'm using a default page to render everything. The problem is that I can't seem to get every css in the head part. The menu has a custom css that I eventually want to include into the head. This way I can use every part individually. How come the css doesn't get included into the head.blade.php part?</p>
  
  <p><strong>Default.blade.php</strong></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          @include('includes.head')
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
  
                  &lt;header class="row"&gt;
                      @include('includes.menu')
                  &lt;/header&gt;
  
                  &lt;div id="main" class="row"&gt;
                      @yield('content')
                  &lt;/div&gt;
  
              &lt;/div&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p><strong>head.blade.php</strong></p>
  
  <pre><code>&lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  @yield('styles')
  </code></pre>
  
  <p><strong>menu.blade.php</strong></p>
  
  <pre><code>@section('styles')
      &lt;link href="{{ asset('/css/menu.css') }}" rel="stylesheet"&gt;
  @endsection
  </code></pre>
  
  <p><strong>login.blade.php</strong></p>
  
  <pre><code>@extends('layouts.default')
  
  @section('styles')
      @parent
      &lt;link href="{{ asset('/css/login.css') }}" rel="stylesheet"&gt;
  @endsection
  
  @section('content')
  --content here--
  @stop
  </code></pre>
  
  <p>What I eventually want is that every individual css gets loaded into the head file based on the included views. </p>