Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit c5d1bba

Browse files
committed
Update database.php
1 parent 8dfcf61 commit c5d1bba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

config/database.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
'database' => env('DB_DATABASE', database_path('database.sqlite')),
3838
'prefix' => '',
3939
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
40+
'busy_timeout' => null,
41+
'journal_mode' => null,
42+
'synchronous' => null,
4043
],
4144

4245
'mysql' => [
@@ -48,8 +51,8 @@
4851
'username' => env('DB_USERNAME', 'root'),
4952
'password' => env('DB_PASSWORD', ''),
5053
'unix_socket' => env('DB_SOCKET', ''),
51-
'charset' => env('DB_CHARSET', 'utf8'),
52-
'collation' => env('DB_COLLATION', 'utf8_unicode_ci'),
54+
'charset' => env('DB_CHARSET', 'utf8mb4'),
55+
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
5356
'prefix' => '',
5457
'prefix_indexes' => true,
5558
'strict' => true,
@@ -69,7 +72,7 @@
6972
'password' => env('DB_PASSWORD', ''),
7073
'unix_socket' => env('DB_SOCKET', ''),
7174
'charset' => env('DB_CHARSET', 'utf8mb4'),
72-
'collation' => env('DB_COLLATION', 'utf8mb4_uca1400_ai_ci'),
75+
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
7376
'prefix' => '',
7477
'prefix_indexes' => true,
7578
'strict' => true,
@@ -145,6 +148,7 @@
145148
'options' => [
146149
'cluster' => env('REDIS_CLUSTER', 'redis'),
147150
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
151+
'persistent' => env('REDIS_PERSISTENT', false),
148152
],
149153

150154
'default' => [

0 commit comments

Comments
 (0)