The point of directories outside of the public root is that the contents should not be publicly accessible. You would need to either (i) symlink the directory into public, or (ii) make a Route to get the contents from the non-public directory
Nov 14, 2022
9
Level 5
How do I access an image inside the public_html directory outside of the public_html directory
I've 2 folders:
- public_html
- lfg
See my folders by following this link: https://i.gyazo.com/c61d56a5d8742e6eadff570672cc0dca.png
How do I access an image inside the public_html directory:
<img src="point To The Outside Of The Public Html Directory" />
/home/lfg/public_html/storage
/lfg/storage/app/public
Here is located the file:
/lfg/storage/app/public/avatar/user.png
Please or to participate in this conversation.