2 months ago

Symlink problem on production

Posted 2 months ago by distal-shores

My app's symbolic links between storage/app/public and public/storage have been created as per usual using php artisan storage:link, however, on production they're not working as intended.

Any uploaded file, for example, saved to /storage/app/public/uploads 404s in the browser on production at the address BASE_URL/uploads/FILENAME, whereas locally (running Valet) this works fine.

Again, adding /storage/ to the endpoint resolves the file as intended. What am I doing wrong here?

Please sign in or create an account to participate in this conversation.