Link:  https://medium.com/@dennissmink/laravel-include-your-own-helper-functions-8e744ca66e4f

Sometimes you might want to create a function that is available everywhere, this is where this tutorial comes in handy for you.

laravel helper functions