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
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
Submit improvements, related content, or suggestions through Github.
Betterify this page →