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