Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

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