You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use @stack and @Push in my blade file.but it not works,because @stack works in layout blade,it not works in a section blade
@stack('test-section')
this is test section
@push('test-section')
this is test put
@endpush
i just want to make a section have default data,for example
@extends('body')
@section('content')
@stack('test-section')
this is test section{{$top}}
@endsection
@push('test-section')
this is test put
@php
$top = $top??'this top';
@endphp
@endpush
$top is ok when $top declared in this blade top.my idea from shopify's liquid {% schema %}
it's not necessary ,the section data need declared in the section top,if i declared in the section top,code will become poorly managed
i use @stack and @Push in my blade file.but it not works,because @stack works in layout blade,it not works in a section blade
i just want to make a section have default data,for example
$top is ok when $top declared in this blade top.my idea from shopify's liquid {% schema %}
it's not necessary ,the section data need declared in the section top,if i declared in the section top,code will become poorly managed
I need help.Thank you very much.
The text was updated successfully, but these errors were encountered: