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 composer dump-autoload or composer update
BY Best Interview Question ON 02 Mar 2023