akaunting/config/setting.php

103 lines
2.7 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
|
*/
'auto_save' => false,
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' => [
'enabled' => true,
'key' => 'setting',
'ttl' => 21600,
'auto_clear' => true,
],
2017-09-14 22:21:00 +03:00
/*
|--------------------------------------------------------------------------
| Setting driver
|--------------------------------------------------------------------------
|
| Select where to store the settings.
|
| Supported: "database", "json"
|
*/
'driver' => 'database',
/*
|--------------------------------------------------------------------------
| Database driver
|--------------------------------------------------------------------------
|
| Options for database driver. Enter which connection to use, null means
| the default connection. Set the table and column names.
|
*/
'database' => [
'connection' => null,
'table' => 'settings',
'key' => 'key',
'value' => 'value',
],
/*
|--------------------------------------------------------------------------
| JSON driver
|--------------------------------------------------------------------------
|
| Options for json driver. Enter the full path to the .json file.
|
*/
'json' => [
2019-11-16 10:21:14 +03:00
'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
];