I am trying to use the @yield directive in my blade view to display content.
I’ve followed the Laravel documentation but it is simply not displaying my content.
resources/views/layouts/home.blade.php
...
<body>
@yield('content')
</body>
...
resources/views/layouts/content.blade.php
@extends('home')
@section('content')
<p>This is my content</p>
@endsection
Both blade views are in the same folder.
If I use the @include directive it does work, but that’s not what I’m after.
Thanks.