From c009587d5aaeecee4f20e691ad9b1d3c83eee0b7 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 3 May 2026 01:11:57 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20=D9=85=D9=8F=D8=B5=D8=A7=D8=AF?= =?UTF-8?q?=D9=8E=D9=82:=20=D8=AA=D8=AD=D8=AF=D9=8A=D8=AB=20=D8=A8=D8=B1?= =?UTF-8?q?=D9=85=D8=AC=D9=8A=20=D8=AC=D8=AF=D9=8A=D8=AF=202026-05-03=2001?= =?UTF-8?q?:11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Core/Application.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Core/Application.php b/app/Core/Application.php index 95b2503..9a9635b 100644 --- a/app/Core/Application.php +++ b/app/Core/Application.php @@ -14,8 +14,11 @@ final class Application public function __construct(string $basePath) { - // 1. Load Environment Variables (Look one level up from Application folder) - $dotenv = Dotenv::createImmutable(dirname($basePath)); + // 1. Load Environment Variables (Point to the specific 'env' folder outside htdocs) + // Path: /home/intaleqapp-musadaq/env/ + $envPath = dirname(dirname(dirname($basePath))) . '/env'; + + $dotenv = Dotenv::createImmutable($envPath); $dotenv->load(); // 2. Set Timezone