How to make a helper file in laravel?
We can create a helper file using Composer. Steps are given below:-
- Please create a
"app/helpers.php"file that is in app folder.
in "autoload" variable.
- Now update your composer.json with