database.php 5.17 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | PDO Fetch Style
    |--------------------------------------------------------------------------
    |
    | By default, database results will be returned as instances of the PHP
    | stdClass object; however, you may desire to retrieve records in an
    | array format for simplicity. Here you can tweak the fetch style.
    |
14
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
15

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
16
    'fetch' => PDO::FETCH_OBJ,
Dominik Hebeler's avatar
Dominik Hebeler committed
17
18
19
20
21
22
23
24
25
26

    /*
    |--------------------------------------------------------------------------
    | Default Database Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the database connections below you wish
    | to use as your default connection for all database work. Of course
    | you may use many connections at once using the Database library.
    |
27
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
28

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
29
    'default' => env('DB_CONNECTION', 'mysql'),
Dominik Hebeler's avatar
Dominik Hebeler committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

    /*
    |--------------------------------------------------------------------------
    | Database Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the database connections setup for your application.
    | Of course, examples of configuring each database platform that is
    | supported by Laravel is shown below to make development simple.
    |
    |
    | All database work in Laravel is done through the PHP PDO facilities
    | so make sure you have the driver for your particular database of
    | choice installed on your machine before you begin development.
    |
45
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
46
47
48
49

    'connections' => [

        'sqlite' => [
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
50
            'driver' => 'sqlite',
51
            'database' => database_path(env('DB_DATABASE', 'database.sqlite')),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
52
            'prefix' => '',
Dominik Hebeler's avatar
Dominik Hebeler committed
53
54
        ],

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
55
56
57
58
59
60
61
62
        'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
            'charset' => 'utf8',
Dominik Hebeler's avatar
Dominik Hebeler committed
63
            'collation' => 'utf8_unicode_ci',
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
64
65
66
            'prefix' => '',
            'strict' => true,
            'engine' => null,
Dominik Hebeler's avatar
Dominik Hebeler committed
67
68
        ],

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
69
70
71
72
73
74
75
76
        'spenden' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST_SPENDEN', 'localhost'),
            'port' => env('DB_PORT_SPENDEN', '3306'),
            'database' => env('DB_DATABASE_SPENDEN', 'forge'),
            'username' => env('DB_USERNAME_SPENDEN', 'forge'),
            'password' => env('DB_PASSWORD_SPENDEN', ''),
            'charset' => 'utf8',
77
            'collation' => 'utf8_unicode_ci',
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
78
79
80
            'prefix' => '',
            'strict' => true,
            'engine' => null,
81
82
        ],

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
83
84
85
86
        'pgsql' => [
            'driver' => 'pgsql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '5432'),
Dominik Hebeler's avatar
Dominik Hebeler committed
87
88
89
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
90
91
92
93
            'charset' => 'utf8',
            'prefix' => '',
            'schema' => 'public',
            'sslmode' => 'prefer',
Dominik Hebeler's avatar
Dominik Hebeler committed
94
95
96
97
98
99
100
101
102
103
104
105
106
        ],

    ],

    /*
    |--------------------------------------------------------------------------
    | Migration Repository Table
    |--------------------------------------------------------------------------
    |
    | This table keeps track of all the migrations that have already run for
    | your application. Using this information, we can determine which of
    | the migrations on disk haven't actually been run in the database.
    |
107
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
108

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
109
    'migrations' => 'migrations',
Dominik Hebeler's avatar
Dominik Hebeler committed
110
111
112
113
114
115
116
117
118
119

    /*
    |--------------------------------------------------------------------------
    | Redis Databases
    |--------------------------------------------------------------------------
    |
    | Redis is an open source, fast, and advanced key-value store that also
    | provides a richer set of commands than a typical key-value systems
    | such as APC or Memcached. Laravel makes it easy to dig right in.
    |
120
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
121

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
122
    'redis' => [
Dominik Hebeler's avatar
Dominik Hebeler committed
123

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
124
        'cluster' => false,
Dominik Hebeler's avatar
Dominik Hebeler committed
125

Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
126
127
        'default' => [
            'host' => env('REDIS_HOST', 'localhost'),
128
            'password' => env('REDIS_PASSWORD', null),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
129
130
            'port' => env('REDIS_PORT', 6379),
            'database' => 4,
Dominik Hebeler's avatar
Dominik Hebeler committed
131
        ],
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
132
133
        'redisLogs' => [
            'host' => env('REDIS_LOGS_HOST', 'localhost'),
134
            'password' => env('REDIS_LOGS_PASSWORD', env('REDIS_PASSWORD', null)),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
135
            'port' => env('REDIS_LOGS_PORT', 6379),
136
137
            'database' => 1,
        ],
138
        'redisCache' => [
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
139
            'host' => env('REDIS_CACHE_HOST', 'localhost'),
140
            'password' => env('REDIS_CACHE_PASSWORD', env('REDIS_PASSWORD', null)),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
141
142
            'port' => env('REDIS_CACHE_PORT', 6379),
            'database' => 5,
143
        ],
144
        'redisSessions' => [
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
145
            'host' => env('REDIS_SESSION_HOST', 'localhost'),
146
            'password' => env('REDIS_SESSION_PASSWORD', env('REDIS_PASSWORD', null)),
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
147
            'port' => env('REDIS_SESSION_PORT', 6379),
148
149
            'database' => 3,
        ],
150

Dominik Hebeler's avatar
Dominik Hebeler committed
151
152
153
    ],

];