Update databaseConnection/databaseConnection.php
This commit is contained in:
1 parent
8d84b0959d
commit
a2ec8bdfa5
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user