Check out example codes for "How to use my constants in Larvel". It will help you in understanding the concepts better.

Code Example 1

Create a file constants.php inside app/config/ and put your settings in an array:

//file : app/config/constants.php

return [
	'ADMIN_NAME' => 'administrator'

Then anywhere in your controllers or views you can get the value by using Config Facade:

echo Config::get('constants.ADMIN_NAME');

Learn ReactJs, React Native from