Skip to content

Commit 9f45108

Browse files
committed
use function
1 parent 21eb16f commit 9f45108

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ APP_NAME="My Application"
8181
<a name="retrieving-environment-configuration"></a>
8282
### Retrieving Environment Configuration
8383

84-
All of the variables listed in the `.env` file will be loaded into the `$_ENV` PHP super-global when your application receives a request. However, you may use the `env` helper to retrieve values from these variables in your configuration files. In fact, if you review the Laravel configuration files, you will notice many of the options are already using this helper:
84+
All of the variables listed in the `.env` file will be loaded into the `$_ENV` PHP super-global when your application receives a request. However, you may use the `env` function to retrieve values from these variables in your configuration files. In fact, if you review the Laravel configuration files, you will notice many of the options are already using this function:
8585

8686
'debug' => env('APP_DEBUG', false),
8787

@@ -112,14 +112,14 @@ You may also pass arguments to the `environment` method to determine if the envi
112112
<a name="accessing-configuration-values"></a>
113113
## Accessing Configuration Values
114114

115-
You may easily access your configuration values using the global `config` helper function from anywhere in your application. The configuration values may be accessed using "dot" syntax, which includes the name of the file and option you wish to access. A default value may also be specified and will be returned if the configuration option does not exist:
115+
You may easily access your configuration values using the global `config` function from anywhere in your application. The configuration values may be accessed using "dot" syntax, which includes the name of the file and option you wish to access. A default value may also be specified and will be returned if the configuration option does not exist:
116116

117117
$value = config('app.timezone');
118118

119119
// Retrieve a default value if the configuration value does not exist...
120120
$value = config('app.timezone', 'Asia/Seoul');
121121

122-
To set configuration values at runtime, pass an array to the `config` helper:
122+
To set configuration values at runtime, pass an array to the `config` function:
123123

124124
config(['app.timezone' => 'America/Chicago']);
125125

0 commit comments

Comments
 (0)