- 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
9 lines
269 B
PHP
9 lines
269 B
PHP
<?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');
|