我试图在我的布局中使用它,我突然想到使用 Laravel 5.4 @slot 的新功能。
只是想知道是否可以将数组传递给插槽?
@section('SampleSection')
@component( 'mylayouts.partials.contentheader' )
@slot('title')
Sample Title
@endslot
@slot('indexes')
Pass array here // example [ 'a', 'b', 'c' ]
@endslot
@endcomponent
@endsection