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