Support the ongoing development of Laravel.io →
Configuration Views Blade
Last updated 1 year ago.
0

Fixed!

Wrong master.blade.php...

<header>
  <div class="container">
    <div class="row">
      @section('header')
    </div>
  </div>
</header>

<div id="sidebar" class="col-md-3">
  @section('sidebar')
</div>

<div id="content" class="col-md-9">
  @section('content')
</div>

Correct master.blade.php...

<header>
  <div class="container">
    <div class="row">
      @yield('header')
    </div>
  </div>
</header>

<div id="sidebar" class="col-md-3">
  @yield('sidebar')
</div>

<div id="content" class="col-md-9">
  @yield('content')
</div>

TL;DR - I should have been using @yield('something') instead of @section('something')

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Clarkey clarkey Joined 11 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.