diff --git a/config/database.php b/config/database.php index 7a5723fc9f..7b80008fc6 100644 --- a/config/database.php +++ b/config/database.php @@ -23,7 +23,7 @@ return [ | */ - 'default' => env('DB_CONNECTION', env('APP_ENV') == 'testing' ? 'testing' : 'mysql'), + 'default' => env('DB_CONNECTION', env('DBTEST') ? 'testing' : 'mysql'), /* |--------------------------------------------------------------------------