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