is_image
A boolean for whether the asset is an image.
{{ if is_image }}
<img src="{{ url }}" />
{{ else }}
<a href="{{ url }}">Download</a>
{{ /if }}
@if ($is_image)
<img src="{{ $url }}" />
@else
<a href="{{ $url }}">Download</a>
@endif
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page