Update databaseConnection/databaseConnection.php

This commit is contained in:
Roman Schenk 2026-02-03 11:08:36 +01:00
parent 8d84b0959d
commit a2ec8bdfa5
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// Lädt die .env Datei zwei Ordner über dieser Datei
function loadEnv(): void
{
$envPath = dirname(__DIR__, 2) . '/.env';
$envPath = dirname(__DIR__, 1) . '/.env';
if (!file_exists($envPath)) {
throw new RuntimeException('.env file not found at: ' . $envPath);