$field->yaml()
Parses yaml in the field content and returns an array
array
You can store structured data in fields with YAML. YAML is a simple structuring syntax.
For this example we are going to store multiple addresses in a single field:
These addresses can be fetched and parsed in your templates with the yaml()
method.