I have a sample view:
File: hello.blade.php
//includes the basic html enclosed tags
<p>Hello world<p>
@yield('content')
File: tester.blade.php
@extends('hello')
@section('content')
<p>this is a test<p>
@yield('contents')
@endsection
File: content.blade.php
@extends('tester.blade.php')
@section('contents')
<p>any code will do<p>
@endsection
now my problem is whenever it only renders
Hello world
this is a test
is there any workaround this? or blade engine does not support nested yields? anyhelp will be greatly appreciated
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire