From 5c2501c1a79c6d3a4c902b439a57926862279d67 Mon Sep 17 00:00:00 2001 From: Attila Kerekes Date: Mon, 14 Nov 2022 10:24:58 +0100 Subject: [PATCH] fix: change how database type is checked #950 --- app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index b2f4f92d..da7f2789 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -123,7 +123,7 @@ class AppServiceProvider extends ServiceProvider */ public function setupDatabase(): void { - $db_type = env('DB_CONNECTION'); + $db_type = config()->get('database.default'); if ($db_type == 'sqlite' && ! is_file(database_path('app.sqlite'))) { touch(database_path('app.sqlite'));