Add a helpers.php file to your Laravel application.
A simple way to add a customizable helpers.php file to your Laravel application.
- Simply run this composer require command:
composer require ahuggins/helpers
- Then if your application is >= Laravel 5.5, you would be done. Otherwise you will need to add the following service provider to your
- Publish the helpers file.
php artisan vendor:publish --tag=helpers