move documentation markdown to system directory.

This commit is contained in:
Taylor Otwell
2012-04-03 11:20:20 -05:00
parent 1f6e5f8741
commit 43a3635722
44 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
# Runtime Configuration
## Contents
- [The Basics](#the-basics)
- [Retrieving Options](#retrieving-options)
- [Setting Options](#setting-options)
<a name="the-basics"></a>
## The Basics
Sometimes you may need to get and set configuration options at runtime. For this you'll use the **Config** class, which utilizes Laravel's "dot" syntax for accessing configuration files and items.
<a name="retrieving-options"></a>
## Retrieving Options
#### Retrieve a configuration option:
$value = Config::get('application.url');
#### Return a default value if the option doesn't exist:
$value = Config::get('application.timezone', 'UTC');
#### Retrieve an entire configuration array:
$options = Config::get('database');
<a name="setting-options"></a>
## Setting Options
#### Set a configuration option:
Config::set('cache.driver', 'apc');