1.

How to make a constant and use globally?

Answer»

You can create a constants.php page in config folder if does not EXIST. Now you can put constant VARIABLE with value here and can USE with Config::get('constants.VaribleName');

Example

RETURN [
   'ADMINEMAIL' => '[EMAIL protected]',
];
Now we can display with
Config::get('constants.ADMINEMAIL');



Discussion

No Comment Found