global variable for all controller and views
At first, a config file is appropriate for this kind of things but you may also use another approach, which is as given below (Laravel – 4): To get the same data in any controller you may use: There are many ways, just use one or another, which one you prefer but I’m using the … Read more