Create custom helper in laravel 5

Laravel support inbuilt helper functionality that we can use in our web application. Please follow the following easy steps to create your own custom helper. First create a folder Helpers in your app directory Now create a file CustomHelper.php in this helpers folder Open newly created file and write the following code Open config/app.php and […]

Read More
 
 
 

How to declare a function in Javascript using constructor method?

In class-based object-oriented programming, a constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables. Since JavasScript is also an object-oriented programming launguage, there is also constructor methods in JS to create an object. […]

Read More