Como passar uma função personalizada para um modelo Laravel Blade?

Eu tenho uma função personalizada e quero passá-la em um modelo blade. Aqui está a função:

function trim_characters( $text, $length = 45, $append = '…' ) {

    $length = (int) $length;
    $text = trim( strip_tags( $text ) );

    if ( strlen( $text ) > $length ) {
        $text = substr( $text, 0, $length + 1 );
        $words = preg_split( "/[\s]| /", $text, -1, PREG_SPLIT_NO_EMPTY );
        preg_match( "/[\s]| /", $text, $lastchar, 0, $length );
        if ( empty( $lastchar ) )
            array_pop( $words );

        $text = implode( ' ', $words ) . $append;
    }

    return $text;
}

E o uso é assim:

$string = "A VERY VERY LONG TEXT";
trim_characters( $string );

É possível passar uma função personalizada para o modelo blade? Obrigado.

questionAnswers(1)

yourAnswerToTheQuestion