nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

Nested Flexible Layouts are not casted

Open MuzafferDede opened this issue 4 years ago • 4 comments

I am trying to figure out if it's a bug or i am mistaken that nested Flexible Layouts are not casted.

image

image

i expect motto to cast Whitecube\NovaFlexibleContent\Layouts\Layout.

Right now i access attributes as

@foreach($section->motto as $motto)
 {{ $motto->attributes->title }}
@endforeach

where i am trying to access it directly as

 {{ $motto->title }}

Am i doing something wrong?

MuzafferDede avatar May 21 '20 13:05 MuzafferDede