vipin93's avatar

Image not showing in browser L4.2

I uploaded images successfully in public path and image path in database but when i try to retrieve it not showing in my browser here is my controller http://laravel.io/bin/RE4Lz and my view http://laravel.io/bin/Yy5a6 and my database file -- C:\wamp\www\flash\public\images\1423903702-1186134_413555218749122_1435190358_n.jpg

can any one help me? thanks

0 likes
6 replies
RachidLaasri's avatar

You storing it on your database like this ?

"C:\wamp\www\flash\public\images\1423903702-1186134_413555218749122_1435190358_n.jpg"

RachidLaasri's avatar
Level 41

You should only store the image name "1423903702-1186134_413555218749122_1435190358_n.jpg"

and then call it from your view like

<a href="{{ $image->file }}">
    <img src="{{ asset('images/'.$image->file) }}" alt="{{ $image->title }}">
</a> 
1 like
vipin93's avatar

I want to upload photos but using command handler you have any idea?

Please or to participate in this conversation.