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

is_url Modifier

Returns true if a string is a valid URL.

a_url: http://google.com/
not_a_url: waffles
{{ if a_url | is_url }}
{{ if not_a_url | is_url }}
@if (Statamic::modify($a_url)->isUrl()->fetch()) ... @endif
@if (Statamic::modify($not_a_url)->isUrl()->fetch()) ... @endif
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →