Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Just exceptional. Thank you so much, Jack, you smashed it.

— Hugo, Developer

ensure_right Modifier

Ensures that the string ends with a specified string. If it doesn't, it will now.

links:
- statamic
- wilderborn.com
{{ links }}
<li>{{ value | ensure_right('.com') }}</li>
{{ /links }}
@foreach ($links as $link)
<li>{{ Statamic::modify($value)->ensureRight('.com') }}</li>
@endforeach
<li>statamic.com</li>
<li>wilderborn.com</li>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →