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