You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: helpers.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ Laravel includes a variety of "helper" PHP functions. Many of these functions ar
87
87
### Miscellaneous
88
88
89
89
<divclass="collection-method-list"markdown="1">
90
+
[config](#method-config)
90
91
[csrf_field](#method-csrf-field)
91
92
[csrf_token](#method-csrf-token)
92
93
[dd](#method-dd)
@@ -561,6 +562,16 @@ The `url` function generates a fully qualified URL to the given path:
561
562
<aname="miscellaneous"></a>
562
563
## Miscellaneous
563
564
565
+
<aname="method-config"></a>
566
+
#### `config()` {#collection-method}
567
+
568
+
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:
569
+
570
+
$value = config('app.timezone');
571
+
572
+
// Return a default value if the variable doesn't exist...
0 commit comments