Support the ongoing development of Laravel.io →
posted 11 years ago
Views Blade

is there a way to achieve this:

Master.blade.php

<html>
<body>
    Master
    @yield('body')
</body>
</html>

subMaster.blade.php

@extends('Master')
@section('body')
    subMaster
    @yield('body')
@stop

subsubMaster.blade.php

@extends('subMaster')
@section('body')
    subsubMaster
@stop

I would make return View::make('subsubMaster');

the desired output should be:

<html>
    <body>
        Master
        subMaster
        subsubMaster
     </body>
</html>

the real output is:

 <html>
    <body>
        Master
        subMaster
     </body>
</html>

any way to make this 3 level view inheritance?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tzookb tzookb Joined 9 Feb 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.

© 2025 Laravel.io - All rights reserved.