Skip to content

Commit 3001f3c

Browse files
committed
check if extension loaded
1 parent a0f6bcc commit 3001f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/database.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
'prefix_indexes' => true,
5555
'strict' => true,
5656
'engine' => null,
57-
// 'options' => array_filter([
58-
// PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
59-
// ]),
57+
'options' => extension_loaded('pdo_mysql') ? array_filter([
58+
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
59+
]) : [],
6060
],
6161

6262
'pgsql' => [

0 commit comments

Comments
 (0)