String
The str_*
functions map directly to the \Anomaly\Streams\Platform\Support\Str
class which extends Laravel's \Illuminate\Support\Str
class.
For more information on usage please refer to the String service.
{{ str_humanize("hello_world") }} // "Hello World"
{{ str_truncate(string, 100) }}
{% if str_is("*.module.*", addon("users").namespace) %}
That's a valid module namespace!
{% endif %}
{{ str_camel("some_slug") }} // "someSlug"
{{ str_studly("some_slug") }} // "SomeSlug"
{{ str_random(10) }} // 4sdf87yshs