Skip to content

Commit

Permalink
working on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 11, 2015
1 parent b9d4c13 commit f7faea2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,11 @@ The `url` function generates a fully qualified URL to the given path:
<a name="method-config"></a>
#### `config()` {#collection-method}

The `config` function gets the value of a configuration variable. 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:
The `config` function gets the value of a configuration variable. The configuration values may be accessed using "dot" syntax, which includes the name of the file and the option you wish to access. A default value may be specified and is returned if the configuration option does not exist:

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

// Return a default value if the variable doesn't exist...
$value = config('app.timezone', 'America/Chicago');
$value = config('app.timezone', $default);

<a name="method-csrf-field"></a>
#### `csrf_field()` {#collection-method}
Expand Down

0 comments on commit f7faea2

Please sign in to comment.