Browse Source

add env variable for mysql ssl cert

Taylor Otwell 5 years ago
parent
commit
9180f646d3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      config/database.php

+ 3 - 0
config/database.php

@@ -54,6 +54,9 @@ return [
             'prefix_indexes' => true,
             'strict' => true,
             'engine' => null,
+            'options' => array_filter([
+                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
+            ]),
         ],
 
         'pgsql' => [