Most of the time developers need to create common and global set of constants, variables and arrays which could be used anywhere in your application. There is a handy way to do it in Laravel 5.
Tag: variables
Better way to write php code – part 2
With the help of an example i would explain a very common but erroneous approach new php developers seem to follow (i have seen some ‘old’ ones repeating the same error though). Here it is,