Config: Get ('app. timezone ');
Laravel uses the config: Get method to obtain the value of the configuration file.
The location of laravel configuration files is in the PHP file in the app. config folder. The PHP File Stores arrays, so we use. (DOT) to access values in arrays of different files.
If no default value is available
$ Timezone = config: Get ('app. timezone ', 'utc'); echo $ timezone;
In this way, you can specify a default value.
Config: Set ('database. default', 'sqlite ');
The modified value is limited to this request and does not change the configuration value permanently.
According to the explanation in the official documentation, create your own configuration folder in the config folder, and specify different values in the PHP file under the folder, so that you can overwrite the default values with your own values, the specific configuration file can be used through Bootstrap/start. PHP to specify, open this folder to see such code
$ ENV = $ app-> detectenvironment (Array ('local' => array ('your-machine-name '),));