Method |
Description |
|
camelCase ( string $string ) : string |
CamelCase Converter. |
|
formatCurrency ( string $string, string $currency = 'EUR', integer $decimals = null ) : string |
Format a number as currency
syntax: {{ $string|formatcurrency($currency, $decimals) }}. |
|
formatNumber ( string $number, integer $decimals = null ) : string |
Fallback for if our parent functions don't implement this method |
|
highlightCode ( string $string ) : string |
Highlights all strings in tags. |
|
lowercase ( string $string ) : string |
Makes this string lowercase. |
|
random ( integer $min, integer $max ) : integer |
Get a random var between a min and max
syntax: {{ rand($min, $max) }}. |
|
showBool ( string | boolean $status, boolean $reverse = false ) : string |
Shows a v or x to indicate the boolean state (Y|N, j|n, true|false). |
|
snakeCase ( string $string ) : string |
snakeCase Converter. |
|
spoonDate ( mixed $timestamp, string[optional] $format = 'Y-m-d H:i:s', string[optional] $language = 'en' ) : string |
Formats a language specific date. |
|
stripNewlines ( string $string ) : string |
Convert a multi line string into a string without newlines so it can be handles by JS
syntax: {{ $string|stripnewlines }}. |
|
truncate ( string $string, integer $length, boolean $useHellip = true, boolean $closestWord = false ) : string |
Truncate a string
syntax: {{ $string|truncate($max-length, $append-hellip, $closest-word) }}. |
|
uppercase ( string $string ) : string |
Transform the string to uppercase. |
|