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'));