I would like to create helper functions to avoid repeating code between views in Laravel 5:
view.blade.php
<p>Foo Formated text: {{ fooFormatText($text) }}</p>
They're basically text formatting functions. Where and how can I create a file with these functions?