Update databaseConnection/databaseConnection.php
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// Lädt die .env Datei zwei Ordner über dieser Datei
|
// Lädt die .env Datei zwei Ordner über dieser Datei
|
||||||
function loadEnv(): void
|
function loadEnv(): void
|
||||||
{
|
{
|
||||||
$envPath = dirname(__DIR__, 2) . '/.env';
|
$envPath = dirname(__DIR__, 1) . '/.env';
|
||||||
|
|
||||||
if (!file_exists($envPath)) {
|
if (!file_exists($envPath)) {
|
||||||
throw new RuntimeException('.env file not found at: ' . $envPath);
|
throw new RuntimeException('.env file not found at: ' . $envPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user