-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the package to be autodiscovered.
- Loading branch information
1 parent
1756911
commit 48c9adb
Showing
4 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,45 @@ | ||
<?php | ||
return array( | ||
// which type of store to use. | ||
// valid options: 'json', 'database' | ||
|
||
return [ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Settings Store | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option controls the default settings store that gets used while | ||
| using this settings library. | ||
| | ||
| Supported: "json", "database" | ||
| | ||
*/ | ||
'store' => 'json', | ||
|
||
// if the json store is used, give the full path to the .json file | ||
// that the store writes to. | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| JSON Store | ||
|-------------------------------------------------------------------------- | ||
| | ||
| If the store is set to "json", settings are stored in the defined | ||
| file path in JSON format. Use full path to file. | ||
| | ||
*/ | ||
'path' => storage_path().'/settings.json', | ||
|
||
// if the database store is used, set the name of the table used.. | ||
'table' => 'settings', | ||
|
||
// If the database store is used, you can set which connection to use. if | ||
// set to null, the default connection will be used. | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Database Store | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The settings are stored in the defined file path in JSON format. | ||
| Use full path to JSON file. | ||
| | ||
*/ | ||
// If set to null, the default connection will be used. | ||
'connection' => null, | ||
|
||
// Name of the table used. | ||
'table' => 'settings', | ||
// If you want to use custom column names in database store you could | ||
// set them in this configuration | ||
'keyColumn' => 'key', | ||
'valueColumn' => 'value' | ||
); | ||
]; |