Skip to content

Commit db60049

Browse files
committed
wip
1 parent d1addfe commit db60049

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ To set configuration values at runtime, you may invoke the `Config` facade's `se
202202

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

205+
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:
206+
207+
Config::string('config-key');
208+
Config::integer('config-key');
209+
Config::float('config-key');
210+
Config::boolean('config-key');
211+
Config::array('config-key');
212+
205213
<a name="configuration-caching"></a>
206214
## Configuration Caching
207215

0 commit comments

Comments
 (0)