database.php 4.91 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

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

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' => [
50
            'driver' => 'sqlite',
51
            'database' => database_path(env('SQLITE_DATABASE', 'database.sqlite')),
52
            'prefix' => '',
Dominik Hebeler's avatar
Dominik Hebeler committed
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
        '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',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => true,
            'engine' => null,
        ],

        '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',
Dominik Hebeler's avatar
Dominik Hebeler committed
78
            'collation' => 'utf8_unicode_ci',
79 80 81 82
            'prefix' => '',
            'strict' => true,
            'engine' => null,

Dominik Hebeler's avatar
Dominik Hebeler committed
83 84
        ],

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

    ],

    /*
    |--------------------------------------------------------------------------
    | 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.
    |
109
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
110

111
    'migrations' => 'migrations',
Dominik Hebeler's avatar
Dominik Hebeler committed
112 113 114 115 116 117 118 119 120 121

    /*
    |--------------------------------------------------------------------------
    | 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.
    |
122
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
123

124
    'redis' => [
Dominik Hebeler's avatar
Dominik Hebeler committed
125

126
        'cluster' => false,
Dominik Hebeler's avatar
Dominik Hebeler committed
127

128 129
        'default' => [
            'host' => env('REDIS_HOST', 'localhost'),
130
            'password' => env('REDIS_PASSWORD', null),
131
            'port' => env('REDIS_PORT', 6379),
Dominik Hebeler's avatar
Dominik Hebeler committed
132 133
            'database' => 0,
        ],
134 135
        'redisLogs' => [
            'host' => env('REDIS_LOGS_HOST', 'localhost'),
136
            'password' => env('REDIS_LOGS_PASSWORD', env('REDIS_PASSWORD', null)),
137
            'port' => env('REDIS_LOGS_PORT', 6379),
138 139
            'database' => 1,
        ],
140
        'redisCache' => [
141
            'host' => env('REDIS_CACHE_HOST', 'localhost'),
142
            'password' => env('REDIS_CACHE_PASSWORD', env('REDIS_PASSWORD', null)),
143
            'port' => env('REDIS_CACHE_PORT', 6379),
144 145
            'database' => 2,
        ],
146

Dominik Hebeler's avatar
Dominik Hebeler committed
147 148 149
    ],

];