Skip to content

Commit 9751a84

Browse files
committed
fix: emulate prepares for postgres
1 parent d8b1751 commit 9751a84

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"laravel/sanctum": "^4.0",
1616
"laravel/tinker": "^2.9",
1717
"spatie/laravel-data": "^4.7",
18-
"tightenco/ziggy": "^2.0"
18+
"tightenco/ziggy": "^2.0",
19+
"ext-pdo": "*"
1920
},
2021
"require-dev": {
2122
"barryvdh/laravel-debugbar": "^3.13",

config/database.php

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
'prefix_indexes' => true,
9393
'search_path' => 'public',
9494
'sslmode' => 'prefer',
95+
'options' => [
96+
PDO::ATTR_EMULATE_PREPARES => true
97+
]
9598
],
9699

97100
'sqlsrv' => [

0 commit comments

Comments
 (0)