With Blade it seems the yield
does not work with included parts. How can I fill a section defined inside an included part in the parent template?
It seems this is a known issue: https://github.com/laravel/framework/issues/8970
template-body.blade.php
<body>
@yield('body')
<body>
template-html.blade.php
<html>
@include('template-body')
@yield('other')
</html>
foo.blade.php
@extends('template-html')
@section('body')
Hello World! (does not work)
@endsection
@section('other')
Does work
@endsection