Laravel has variety of global “helper” functions. We are free to use them in our own applications like app_path, ucfirst, auth, env etc. We can also define our own set of helper functions for Laravel applications and PHP packages.

First create a file in app/Helpers/Helper.php #autoloading-helper-file-in-laravel Autoloading Helper File in Laravel

Enter fullscreen mode #defining-helper-functions-in-laravel Defining Helper Functions in Laravel
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners