Well it depends on the file or function, however you can really easily add a helpers file where you can put in methods that you can reuse throughout the framework.
Create a helpers.php file in your app directory.
And then in your composer.json file add the following "files" array to the autoload section. It should look something like this:
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"files" : [
"app/helpers.php"
],
"psr-4": {
"App\": "app/"
}
},
Run composer dump-autoload -o and you can use the methods in that file throughout your project ;)