Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, 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 →