Skip to content

Commit 474701c

Browse files
committed
Re-add getters which were removed
1 parent bfcdb6c commit 474701c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configuration.md

+8
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ To set configuration values at runtime, you may invoke the `Config` facade's `se
203203

204204
config(['app.timezone' => 'America/Chicago']);
205205

206+
To assist with static analysis, the `Config` facade also provides typed configuration retrieval methods. If the retrieved configuration value does not match the expected type, an exception will be thrown:
207+
208+
Config::string('config-key');
209+
Config::integer('config-key');
210+
Config::float('config-key');
211+
Config::boolean('config-key');
212+
Config::array('config-key');
213+
206214
<a name="configuration-caching"></a>
207215
## Configuration Caching
208216

0 commit comments

Comments
 (0)