|
1 | 1 | <?php |
2 | | -return array( |
3 | | - // which type of store to use. |
4 | | - // valid options: 'json', 'database' |
| 2 | + |
| 3 | +return [ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Default Settings Store |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | This option controls the default settings store that gets used while |
| 10 | + | using this settings library. |
| 11 | + | |
| 12 | + | Supported: "json", "database" |
| 13 | + | |
| 14 | + */ |
5 | 15 | 'store' => 'json', |
6 | 16 |
|
7 | | - // if the json store is used, give the full path to the .json file |
8 | | - // that the store writes to. |
| 17 | + /* |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | JSON Store |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | |
| 22 | + | If the store is set to "json", settings are stored in the defined |
| 23 | + | file path in JSON format. Use full path to file. |
| 24 | + | |
| 25 | + */ |
9 | 26 | 'path' => storage_path().'/settings.json', |
10 | 27 |
|
11 | | - // if the database store is used, set the name of the table used.. |
12 | | - 'table' => 'settings', |
13 | | - |
14 | | - // If the database store is used, you can set which connection to use. if |
15 | | - // set to null, the default connection will be used. |
| 28 | + /* |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | Database Store |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | |
| 33 | + | The settings are stored in the defined file path in JSON format. |
| 34 | + | Use full path to JSON file. |
| 35 | + | |
| 36 | + */ |
| 37 | + // If set to null, the default connection will be used. |
16 | 38 | 'connection' => null, |
17 | | - |
| 39 | + // Name of the table used. |
| 40 | + 'table' => 'settings', |
18 | 41 | // If you want to use custom column names in database store you could |
19 | 42 | // set them in this configuration |
20 | 43 | 'keyColumn' => 'key', |
21 | 44 | 'valueColumn' => 'value' |
22 | | -); |
| 45 | +]; |
0 commit comments