From 81bccc464531122143cee29f28624c265137aa85 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 9 Mar 2025 23:29:24 -0600 Subject: [PATCH] chore: allow overriding Laravel storage path using `$APP_STORAGE_PATH` Signed-off-by: Matthew Penner --- bootstrap/app.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index ee5f1bae2..74bae64a8 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -15,6 +15,10 @@ $app = new Illuminate\Foundation\Application( $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); +if (isset($_ENV['APP_STORAGE_PATH'])) { + $app->useStoragePath($_ENV['APP_STORAGE_PATH']); +} + /* |-------------------------------------------------------------------------- | Bind Important Interfaces