Fix: Configure Laravel to use /app/data/storage

- Created laravel-paths.php to override storage path
- Patched bootstrap/app.php to load custom paths
- Removed symlink approach as /app/code is read-only
- Laravel will now use /app/data/storage directly
This commit is contained in:
Your Name
2025-10-22 09:14:03 -06:00
parent fec445e17e
commit 2de73967a4
3 changed files with 12 additions and 3 deletions

8
laravel-paths.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
/**
* Override Laravel storage paths for Cloudron
* This file is loaded before the application boots to redirect storage to /app/data
*/
// Override storage path to use /app/data/storage instead of /app/code/storage
$app->useStoragePath('/app/data/storage');