How to create custom helper functions in Laravel I would like to create helper functions to avoid repeating code between views in Laravel. For example: view.blade.php <p>Foo Formated text: {{ fooFormatText($text) }}</p> They’re basically text formatting functions.... May 1, 2022 0 Comments