-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
executable file
·106 lines (106 loc) · 3.97 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Settings Store
|--------------------------------------------------------------------------
|
| This option controls the default connection that gets used while
| using this library. This connection is used when another is
| not explicitly specified when executing a given settings function.
|
| Supported: "array", "database"
|
*/
'default' => env('SETTINGS_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
| Settings Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the settings "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same settings driver to group types of items stored in your settings store.
|
*/
'stores' => [
'array' => [
// The driver name.
'driver' => 'array',
],
'database' => [
// The driver name.
'driver' => 'database',
// The database connection from file "config/database.php".
// If set to null or false, the default connection will be used.
'connection' => null,
/*
|------------------------------------------------------------------
| Names of tables and columns
|------------------------------------------------------------------
*/
'names' => [
'settings' => [
// The name of the table for storing app settings.
'table' => 'settings',
// The name of the scope column.
'scope' => 'scope',
// The name of the key column.
'key' => 'name',
// The name of the value column.
'value' => 'value',
],
'settings_models' => [
// The name of the table for storing model settings.
'table' => 'settings_models',
// The prefix for polymorphic association.
'entity' => 'model',
// The name of the key column.
'key' => 'name',
// The name of the value column.
'value' => 'value',
],
],
/*
|------------------------------------------------------------------
| Cache configuration
|------------------------------------------------------------------
*/
'cache' => [
// Enable / Disable caching.
'enabled' => true,
// The cache key prefix.
'prefix' => 'ls',
// Time to Live in minutes.
'ttl' => 120,
// The cache store from file "config/cache.php".
// If set to null or false, the default store will be used.
'store' => null,
],
/*
|------------------------------------------------------------------
| Scopes configuration
|------------------------------------------------------------------
*/
'scopes' => [
// The name of the default scope.
'default' => 'default',
// Scopes to preload (when cache is enabled).
'preload' => [
'default',
],
],
],
// Place the config for your custom store here:
// ...
],
/*
|--------------------------------------------------------------------------
| Events
|--------------------------------------------------------------------------
|
| Enable / Disable events triggering.
|
*/
'events' => true,
];