Troubleshooting
Whether you are using Twig or Blade there is a helpful dump()
function available to provide a nicely formatted version of PHP's native var_dump()
output. This can be incredibly useful when debugging a problem with a template or understanding more about the data being processed.
- Twig
- Blade
{{ dump(entry.field_name) }}
@dump($entry->field_name)