{{ fields }}
{{ options }}
{{ key }} {{ value }}
{{ /options }}
{{ /fields }}
Key and value giving no output, but the array is shown in the dump:
"options" => array:3 [â–¼
"key_1" => "value"
"key_2" => "value"
"key_3" => "value"
]
Accessing by looping through key/value only works when array is indexed (keys of 0, 1, 2, 3). You can do this:
{{ fields }}
{{ options:key_1 }}
{{ options:key_2 }}
{{ options:key_13}}
{{ /fields }}
Or you can use the foreach tag.
foreach works perfectly. Thank you @jackmcdade !
My pleasure!
Most helpful comment
Accessing by looping through key/value only works when array is indexed (keys of 0, 1, 2, 3). You can do this:
Or you can use the foreach tag.