Image not showing in live server - Laravel 4.2 -


am working on laravel 4.2, can able show image in localhost, not in live server example image tag,

<img src="images/data/d3ss.jpg" alt="" class="img-responsive"> 

works in localhost not in live server,

if hit image url in browser says notfoundexception in live sever in localhost can able see image

http://xxxx.com/yyy/public/data/d3ss.jpg [notfoundexception] http://localhost/yyy/public/data/d3ss.jpg [working] 

the image has been place in public/images/data

i tried with

url::to('/').'/images/data/d3ss.jpg' 

works in localhost not in server

please guide me, how solve issue.

am sorry,

i found solution. have mistakenly start image file name numbers 8989_filename.jpg. when remove numbers @ front works in server. in localhost numbers 8989_filename.jpg working.

any other suggestions? advice.

try use html::image helper.

example

{{ html::image('img/picture.jpg', 'a picture', array('class' => 'my-class')) }}

more info here


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -