Skip to content

[5.2] Blade push with layouts weird ordering #12753

Closed
@mark86092

Description

@mark86092

I have
a.blade.php

@stack('me')

b.blade.php

@extends('a')
@push('me') b0 @endpush('me')

c.blade.php

@extends('b')
@push('me') c1 @endpush('me')
@push('me') c2 @endpush('me')

then the rendering result of c.blade.php will be

c1  c2  b0 

But I expect the result should be

b0  c1  c2

It happens that b0 is pushed latter, not before the c1, c2

Is it a bug that should be fixed ? or any way making b0 be pushed before c1, c2 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions