Skip to content

Commit

Permalink
added env to setting
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 7, 2020
1 parent a01de23 commit 477c9cb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
| Auto-save every time the application shuts down
|
*/
'auto_save' => false,
'auto_save' => env('SETTING_AUTO_SAVE', false),

/*
|--------------------------------------------------------------------------
Expand All @@ -22,10 +22,10 @@
|
*/
'cache' => [
'enabled' => true,
'key' => 'setting',
'ttl' => 21600,
'auto_clear' => true,
'enabled' => env('SETTING_CACHE_ENABLED', true),
'key' => env('SETTING_CACHE_KEY', 'setting'),
'ttl' => env('SETTING_CACHE_TTL', 21600),
'auto_clear' => env('SETTING_CACHE_AUTO_CLEAR', true),
],

/*
Expand All @@ -38,7 +38,7 @@
| Supported: "database", "json"
|
*/
'driver' => 'database',
'driver' => env('SETTING_DRIVER', 'database'),

/*
|--------------------------------------------------------------------------
Expand All @@ -50,10 +50,10 @@
|
*/
'database' => [
'connection' => null,
'table' => 'settings',
'key' => 'key',
'value' => 'value',
'connection' => env('SETTING_DATABASE_CONNECTION', null),
'table' => env('SETTING_DATABASE_TABLE', 'settings'),
'key' => env('SETTING_DATABASE_KEY', 'key'),
'value' => env('SETTING_DATABASE_VALUE', 'value'),
],

/*
Expand All @@ -65,7 +65,7 @@
|
*/
'json' => [
'path' => storage_path() . '/settings.json',
'path' => env('SETTING_JSON_PATH', storage_path('settings.json')),
],

/*
Expand Down

0 comments on commit 477c9cb

Please sign in to comment.