Display Bard Array from Database using Blade

I have set up the EntryModel for Statamic which is storing my entries in a database. However I am struggling to display the nested array from the Bard entry in my Blade view.

This is the first part of the array as an example: 0 => array:3 [ "type" => "heading" "attrs" => array:1 [ "level" => 6 ] "content" => array:1 [ 0 => array:2 [ "type" => "text" "text" => "Article Title" ] ] ]

And heres an example of my blade view (but when accessing the nested array in content I get the error 'htmlspecialchars() expects parameter 1 to be string'):

@foreach($article->data['content'] as $post ) @if(isset($post['type'])) {{ $post['type'] }} @endif @endforeach

Any help or direction on what to do would be appricated

>>>>>>> Unanswered <<<<<<<
3 Replies
3 Followers