Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

ensure_left Modifier

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

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

Submit improvements, related content, or suggestions through Github.

Betterify this page →