Helper files are usually used as global functions that don't belong to any particular class, and may be used anywhere in the Laravel project: in Controllers, Blade Views, or other classes.
To include such a helper file globally, typically it's added to the composer.json section "autoload" -> "files".
Important: if you describe some function as global, you should check if the same function name doesn't exist elsewhere in the project, with method function_exists().
To include such a helper file globally, typically it's added to the composer.json section "autoload" -> "files".
Important: if you describe some function as global, you should check if the same function name doesn't exist elsewhere in the project, with method function_exists().