diff --git a/.env b/.env index 73483c41a..7c918601f 100644 --- a/.env +++ b/.env @@ -1,10 +1,11 @@ APP_ENV=local -APP_KEY= APP_DEBUG=true +APP_KEY=base64:iAcSe1H4GLb4H0hgA5HTh4VGLHtH9ZZt+mjF0pUKLzw= DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_DATABASE= -DB_USERNAME= -DB_PASSWORD= +DB_HOST=msdocs-laravel-mysql-32333-server.mysql.database.azure.com +DB_DATABASE=sampledb +DB_USERNAME=doan1 +DB_PASSWORD=nh6462 +MYSQL_SSL=true +DB_SSL_CA=ssl/DigiCertGlobalRootCA.crt.pem diff --git a/config/database.php b/config/database.php index 137ad18ce..db0164681 100644 --- a/config/database.php +++ b/config/database.php @@ -59,8 +59,9 @@ 'strict' => true, 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ - PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], 'pgsql' => [