Laravel includes a variety of global “helper” PHP functions. Many of these functions are used by the framework itself; however, you are free to use them in your own applications if you find them convenient.
Please read more on: https://laravel.com/docs/10.x/helpers