adspace


How to make a helper file in laravel?

Answer Posted / Raghvendra Voyoharia

To create a helper function in Laravel, you can create a file in app/Helpers directory and define your functions there. Make sure to run 'composer dump-autoload' after creating the file. Here is an example: <?php nfunction myHelperFunction() {n // Your code heren}n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what version of laravel do you generally use?

839


What is current stable version of laravel?

870


Tell us have you used lumen before?

808


How much laravel experience do you have?

815


What is latest version of laravel?

869