looking to move all of my user uploaded images outside of the public view.
I have my structure as so:
Mamp
htdocs
buildsanctuary
/app
/public_html
/ images
/user_images
I used to link to images with:
{{ asset('/')}} images/linktoimage.jpeg
However I have now linked like so:
<?php echo base_path() ?> /user_images/linktoimage.jpeg
This does not work however and it shows as the image could not be found.
When checking the link to the image in a browser it shows:
http://localhost/Applications/MAMP/htdocs/buildsanctuary/user_images/linktoimage.jpeg
So im not sure why this isnt working? Any ideas?