Custom helper creation in Laravel 5.3

Laravel provides many functions for code reusabilityThere is a possibility to add custom helper functions if you want. In this article i would explain how to create and use custom helper functions in your lravel application. This is very important in many situations.

Step 1 : Create helper file

Now create helper file in app/Http/helpers.php 

Step  2: Add file path in composer file

i.e., composer.json

Step 3 : Publish helper

Just execute this command.

Step 4 : Routing and Controller