Different configuration options for Laravel.
Within your app/Http directory, create a helpers.php file and add your functions. Within composer.json, in the autoload block, add:
helpers.php
composer.json
"files": ["app/Http/helpers.php"]
Run:
composer dump-autoload