andybeak
1/23/2017 - 3:55 PM

SSL database connection

SSL database connection

'project_ssl' => [
      'driver'    => 'mysql',
      'host'      => env('DB_HOST', 'localhost'),
      'database'  => env('DB_DATABASE_PROJECT'),
      'username'  => env('DB_USERNAME'),
      'password'  => env('DB_PASSWORD'),
      'charset'   => 'utf8',
      'collation' => 'utf8_unicode_ci',
      'prefix'    => '',
      'strict'    => false,
      'options'   => [
          PDO::MYSQL_ATTR_SSL_CA => storage_path() . 'app/mysql_ssl_certificate/rds-combined-ca-bundle.pem'
      ],
  ],