Skip to content

Instantly share code, notes, and snippets.

@andybeak
Created January 23, 2017 15:55
Show Gist options
  • Save andybeak/47e89385c305b21966b22d193d132500 to your computer and use it in GitHub Desktop.
Save andybeak/47e89385c305b21966b22d193d132500 to your computer and use it in GitHub Desktop.
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'
],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment