How will you create a helper file in laravel?



How will you create a helper file in laravel?..

Answer / Harphool Jat

In Laravel, to create a helper file, create a new PHP file in the `app/Helpers` directory and add your custom functions. After that, register the Helper in `composer.json` under the `autoload` section and run `composer dump-autoload`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to send mail using queue in laravel 5?

1 Answers  


How to share sites with external world on valet?

1 Answers  


What is reverse routing in laravel?

1 Answers  


Explain how to add csrf protection in laravel?

1 Answers  


what is Restful Resource Controllers ?

2 Answers  


Explain how to install installing mariadb on homestead?

1 Answers  


How to disable maintaince mode in laravel?

1 Answers  


Is laravel based on symfony?

1 Answers  


What is an api route?

1 Answers  


How to create real time sitemap.xml file in laravel?

1 Answers  


What do you know about csrf token in laravel? How can someone turn off csrf protection for a specific route?

1 Answers  


What is auth? How is it used?

1 Answers  


Categories