akaunting/config/setting.php

103 lines
3.0 KiB
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Enable / Disable auto save
|--------------------------------------------------------------------------
|
| Auto-save every time the application shuts down
|
*/
2020-03-07 13:19:16 +03:00
'auto_save' => env('SETTING_AUTO_SAVE', false),
2017-09-14 22:21:00 +03:00
2019-11-16 10:21:14 +03:00
/*
|--------------------------------------------------------------------------
| Cache
|--------------------------------------------------------------------------
|
| Options for caching. Set whether to enable cache, its key, time to live
| in seconds and whether to auto clear after save.
|
*/
'cache' => [
2020-03-07 13:19:16 +03:00
'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),
2019-11-16 10:21:14 +03:00
],
2017-09-14 22:21:00 +03:00
/*
|--------------------------------------------------------------------------
| Setting driver
|--------------------------------------------------------------------------
|
| Select where to store the settings.
|
| Supported: "database", "json"
|
*/
2020-03-07 13:19:16 +03:00
'driver' => env('SETTING_DRIVER', 'database'),
2017-09-14 22:21:00 +03:00
/*
|--------------------------------------------------------------------------
| Database driver
|--------------------------------------------------------------------------
|
| Options for database driver. Enter which connection to use, null means
| the default connection. Set the table and column names.
|
*/
'database' => [
2020-03-07 13:19:16 +03:00
'connection' => env('SETTING_DATABASE_CONNECTION', null),
'table' => env('SETTING_DATABASE_TABLE', 'settings'),
'key' => env('SETTING_DATABASE_KEY', 'key'),
'value' => env('SETTING_DATABASE_VALUE', 'value'),
2017-09-14 22:21:00 +03:00
],
/*
|--------------------------------------------------------------------------
| JSON driver
|--------------------------------------------------------------------------
|
| Options for json driver. Enter the full path to the .json file.
|
*/
'json' => [
2020-03-07 13:19:16 +03:00
'path' => env('SETTING_JSON_PATH', storage_path('settings.json')),
2017-09-14 22:21:00 +03:00
],
/*
|--------------------------------------------------------------------------
| Override application config values
|--------------------------------------------------------------------------
|
| If defined, settings package will override these config values.
|
| Sample:
| "app.fallback_locale",
| "app.locale" => "settings.locale",
|
*/
'override' => [
2020-02-26 16:48:41 +03:00
2017-09-14 22:21:00 +03:00
],
2019-02-21 18:20:03 +03:00
/*
|--------------------------------------------------------------------------
| Required Extra Columns
|--------------------------------------------------------------------------
|
| The list of columns required to be set up
|
| Sample:
| "user_id",
| "tenant_id",
|
*/
'required_extra_columns' => [
2019-11-16 10:21:14 +03:00
'company_id',
2019-02-21 18:20:03 +03:00
],
2017-09-14 22:21:00 +03:00
];