Subversion-Projekte lars-tiefland.zeldi.de

Revision

Revision 2 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
<?php
2
 
3
use Illuminate\Support\Str;
4
 
5
return [
6
 
7
    /*
8
    |--------------------------------------------------------------------------
9
    | Default Database Connection Name
10
    |--------------------------------------------------------------------------
11
    |
12
    | Here you may specify which of the database connections below you wish
13
    | to use as your default connection for all database work. Of course
14
    | you may use many connections at once using the Database library.
15
    |
16
    */
17
 
18
    'default' => env('DB_CONNECTION', 'mysql'),
19
 
20
    /*
21
    |--------------------------------------------------------------------------
22
    | Database Connections
23
    |--------------------------------------------------------------------------
24
    |
25
    | Here are each of the database connections setup for your application.
26
    | Of course, examples of configuring each database platform that is
27
    | supported by Laravel is shown below to make development simple.
28
    |
29
    |
30
    | All database work in Laravel is done through the PHP PDO facilities
31
    | so make sure you have the driver for your particular database of
32
    | choice installed on your machine before you begin development.
33
    |
34
    */
35
 
36
    'connections' => [
37
 
38
        'sqlite' => [
39
            'driver' => 'sqlite',
40
            'url' => env('DATABASE_URL'),
41
            'database' => env('DB_DATABASE', database_path('database.sqlite')),
42
            'prefix' => '',
43
            'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
44
        ],
45
 
46
        'mysql' => [
47
            'driver' => 'mysql',
48
            'url' => env('DATABASE_URL'),
49
            'host' => env('DB_HOST', '127.0.0.1'),
50
            'port' => env('DB_PORT', '3306'),
51
            'database' => env('DB_DATABASE', 'forge'),
52
            'username' => env('DB_USERNAME', 'forge'),
53
            'password' => env('DB_PASSWORD', ''),
54
            'unix_socket' => env('DB_SOCKET', ''),
55
            'charset' => 'utf8mb4',
56
            'collation' => 'utf8mb4_unicode_ci',
57
            'prefix' => '',
58
            'prefix_indexes' => true,
59
            'strict' => true,
60
            'engine' => null,
61
            'options' => extension_loaded('pdo_mysql') ? array_filter([
62
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
63
            ]) : [],
64
        ],
65
 
66
        'cms' => [
67
            'driver' => 'mysql',
68
            'url' => env('DATABASE_URL'),
69
            'host' => 'localhost',
70
            'port' => '3306',
71
            'database' => 'content_management',
72
            'username' => 'content_managem',
73
            'password' => 'k-dp-u',
74
            'charset' => 'utf8',
75
            'prefix' => '',
76
            'prefix_indexes' => true,
77
            'strict' => true,
78
            'engine' => null,
79
            'options' => extension_loaded('pdo_mysql') ? array_filter([
80
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
81
            ]) : [],
82
        ],
83
        'old' => [
84
            'driver' => 'mysql',
85
            'url' => env('DATABASE_URL'),
86
            'host' => 'localhost',
87
            'port' => '3306',
3 lars 88
            'database' => 'zeldi_de',
2 lars 89
            'username' => env('DB_USERNAME', 'forge'),
90
            'password' => env('DB_PASSWORD', ''),
91
            'charset' => 'utf8',
92
            'prefix' => '',
93
            'prefix_indexes' => true,
94
            'strict' => true,
95
            'engine' => null,
96
            'options' => extension_loaded('pdo_mysql') ? array_filter([
97
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
98
            ]) : [],
99
        ],
100
        'oldOrder' => [
101
            'driver' => 'mysql',
102
            'url' => env('DATABASE_URL'),
103
            'host' => 'localhost',
104
            'port' => '3306',
105
            'database' => 'marine_sales_de',
106
            'username' => env('DB_USERNAME', 'forge'),
107
            'password' => env('DB_PASSWORD', ''),
108
            'charset' => 'utf8',
109
            'prefix' => '',
110
            'prefix_indexes' => true,
111
            'strict' => true,
112
            'engine' => null,
113
            'options' => extension_loaded('pdo_mysql') ? array_filter([
114
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
115
            ]) : [],
116
        ],
117
 
118
        'order' => [
119
            'driver' => 'mysql',
120
            'url' => env('DATABASE_URL'),
121
            'host' => 'localhost',
122
            'port' => '3306',
123
            'database' => 'marine_sales_laravel',
124
            'username' => env('DB_USERNAME', 'forge'),
125
            'password' => env('DB_PASSWORD', ''),
126
            'charset' => 'utf8',
127
            'prefix' => '',
128
            'prefix_indexes' => true,
129
            'strict' => true,
130
            'engine' => null,
131
            'options' => extension_loaded('pdo_mysql') ? array_filter([
132
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
133
            ]) : [],
134
        ],
135
 
136
    ],
137
 
138
    /*
139
    |--------------------------------------------------------------------------
140
    | Migration Repository Table
141
    |--------------------------------------------------------------------------
142
    |
143
    | This table keeps track of all the migrations that have already run for
144
    | your application. Using this information, we can determine which of
145
    | the migrations on disk haven't actually been run in the database.
146
    |
147
    */
148
 
149
    'migrations' => 'migrations',
150
 
151
    /*
152
    |--------------------------------------------------------------------------
153
    | Redis Databases
154
    |--------------------------------------------------------------------------
155
    |
156
    | Redis is an open source, fast, and advanced key-value store that also
157
    | provides a richer body of commands than a typical key-value system
158
    | such as APC or Memcached. Laravel makes it easy to dig right in.
159
    |
160
    */
161
 
162
    'redis' => [
163
 
164
        'client' => env('REDIS_CLIENT', 'phpredis'),
165
 
166
        'options' => [
167
            'cluster' => env('REDIS_CLUSTER', 'redis'),
168
            'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
169
        ],
170
 
171
        'default' => [
172
            'url' => env('REDIS_URL'),
173
            'host' => env('REDIS_HOST', '127.0.0.1'),
174
            'username' => env('REDIS_USERNAME'),
175
            'password' => env('REDIS_PASSWORD'),
176
            'port' => env('REDIS_PORT', '6379'),
177
            'database' => env('REDIS_DB', '0'),
178
        ],
179
 
180
        'cache' => [
181
            'url' => env('REDIS_URL'),
182
            'host' => env('REDIS_HOST', '127.0.0.1'),
183
            'username' => env('REDIS_USERNAME'),
184
            'password' => env('REDIS_PASSWORD'),
185
            'port' => env('REDIS_PORT', '6379'),
186
            'database' => env('REDIS_CACHE_DB', '1'),
187
        ],
188
 
189
    ],
190
 
191
];