Update databaseConnection/databaseConnection.php
This commit is contained in:
parent
8d84b0959d
commit
a2ec8bdfa5
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue