How to make a constant and use globally?
You can create a constants.php page in the config folder if does not exist. Now you can put a constant variable with value here and can use it with
Config::get('constants.VaribleName');
BY Best Interview Question ON 16 Sep 2022
Example
return [
'ADMINEMAIL' => '[email protected]',
];
Now we can display with
Config::get('constants.ADMINEMAIL');