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

remove_right Modifier

Ensures that the string never ends with a specified string.

urls:
- http://statamic.com/
- http://laravel.com/
{{ urls }}
{{ value | remove_right('/') }}
{{ /urls}}
@foreach ($urls as $url)
{{ Statamic::modify($url)->removeRight('/') }}
@endforeach
http://statamic.com
http://laravel.com
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →