Just to be clear, is your media directory in the root install? It should be under storage really although you could amend this in config.
Apr 7, 2022
4
Level 6
path confusion spatie media library
I am using spatie media library (v7) to create a gallery of pictures. Locally (using Valet) the path to the file is fine. "/media/45/conversions/image-thumb.jpg" The equivalent path in Forge does not map - it needs to be "/storage/media/45/conversions/image-thumb.jpg" to work.
I have run php artisan storage:link and confirmed the symlink is created. This is the same (or equivalent) link in my local set up.
I know that I could create a symlink to the media directory but why would I need to do this on the remote server and not the local machine?
Please or to participate in this conversation.