I have a custom function and I want to pass it in a blade template. Here is the function:
function trim_characters( $text, $length = 45, $append = \'&hel
You don't have to pass anything to blade. If you define your function, you can use it from blade.
app/helpers.php
file.trim_characters
function to it.composer dump-autoload
.Now just use the function directly in blade:
{{ trim_characters($string) }}