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

theUnforgiven's avatar

Storage Link not working on Forge

Hi all,

I have setup storing files in the storage dir and tested locally and all works fine, however when deployed to Forge this stops working and saves in the Db as /tmp/php1aES7V whereas locally it stores correctly as:

https://app.test/storage/JZWFW5ZUwaAKu2jOPtI9hrIfC.pdf

I did php artisan storage:link on the server and all was good, but not sure as to why these files are been stored as tmp files.

Any help greatly appreciated.

0 likes
1 reply
theUnforgiven's avatar
theUnforgiven
OP
Best Answer
Level 51

Figured I had to put FILESYSTEM_DRIVER=public in the .env file, all working now

Please or to participate in this conversation.