0
votes

I'm having problems accessing images that I use for my google maps markers within the view.

I start php artisan serve and get value of img location from database. But when I print img, I can't reach the location (NotFoundHttpException), for example (storage/app/public/img/markers/stan.png).

Where should I put img folder and how to access it with "var image" from my view?

2
Which laravel version are we talking of btw?m02ph3u5
5.2, btw why does that matters?user5810842

2 Answers

0
votes

Only the /public folder in the root of your app is accessible by default. You can put images in /public/img and the url will be yourdomain.com/img/markers/stan.png

0
votes

If you definitely need to have these files inside storage, you could symlink the path storage/app/public/img/markers to public/img/markers.