From 4a155b04cd1069b44fe7779fcc1e9878a2d1307f Mon Sep 17 00:00:00 2001 From: kroutony Date: Sat, 22 Feb 2020 21:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=87DB=5FPREFIX=20=E5=B8=B6=E5=85=A5config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/database.php b/config/database.php index b42d9b3..e7c5a13 100644 --- a/config/database.php +++ b/config/database.php @@ -39,7 +39,7 @@ return [ 'driver' => 'sqlite', 'url' => env('DATABASE_URL'), 'database' => env('DB_DATABASE', database_path('database.sqlite')), - 'prefix' => '', + 'prefix' => env('DB_PREFIX', ''), 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], @@ -54,7 +54,7 @@ return [ 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', - 'prefix' => '', + 'prefix' => env('DB_PREFIX', ''), 'prefix_indexes' => true, 'strict' => true, 'engine' => null, @@ -72,7 +72,7 @@ return [ 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', - 'prefix' => '', + 'prefix' => env('DB_PREFIX', ''), 'prefix_indexes' => true, 'schema' => 'public', 'sslmode' => 'prefer', @@ -87,7 +87,7 @@ return [ 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', - 'prefix' => '', + 'prefix' => env('DB_PREFIX', ''), 'prefix_indexes' => true, ],