Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

soup's avatar
Level 2

Change Storage folder

Have read and tried a variety of different solutions that I have found here without success. On shared hosting and have laravel working, but still having major problems showing images in storage. Have tried the sym links, but not allowed. Ideally I would like to change my public storage from "myapp/storage/app/public" to where my public webserver folder is. In this case "../html" I understand the security risks, and from a local test development point of view, do not count my images/pdfs as a major problem. I suspect I can change something in filesystems.php, and have attempted the following.

            'driver' => 'local',
            'root' => '../html', # storage_path('app/public'),
            'url' => env('APP_URL'), # env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

With which I have no joy at the moment on blade of getting my image to show(may be using wrong syntax though). Any help would be much welcomed. thanks

0 likes
2 replies
elias-alea's avatar

Hi, is your laravel app sitting in /var/www/html/ directory or is the app symlink ed in the /var/www/html/ directory from another location?

soup's avatar
Level 2

Laravel is sitting in /home/name/myapp The public folder (webserver) is at /var/www/virtual/soup/html/

Please or to participate in this conversation.