image Modifier

Generate an HTML image element with the variable's value as src.

header_image: /assets/img/bokeh-bunnies.jpg
{{ header_image | image }}
{!! Statamic::modify($header_image)->image() !!}
<img src="/assets/img/bokeh-bunnies.jpg">
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →