user9594916
user9594916

Reputation:

First time images can see but now it wont(added images statically)

In my home.blade.php page I have some authorization codes and in another <div> I placed image tag to display images, it worked fine but now I cannot see those images.

home.blade.php

<div class="row pt-5">
  <div class="col-4">
     <img src="images/aa.jpg" alt="" class="w-100">
  </div>

<div class="col-4">
     <img src="images/bb.jpg" alt="" class="w-100">
 </div>

 <div class="col-4">
     <img src="images/cc.jpg" alt="" class="w-100">
  </div>
</div>

and this is the error I get

Failed to load resource: the server responded with a status of 404 (Not Found)

also show these messages

Download the Vue Devtools extension for a better development experience:

You are running Vue in development mode. Make sure to turn on production mode when deploying for production.

Upvotes: 1

Views: 41

Answers (1)

Serhii Posternak
Serhii Posternak

Reputation: 504

I'm not sure, but maybe you just need to use the absolute path?

<div class="row pt-5">
  <div class="col-4">
     <img src="/images/aa.jpg" alt="" class="w-100">
  </div>

<div class="col-4">
     <img src="/images/bb.jpg" alt="" class="w-100">
 </div>

 <div class="col-4">
     <img src="/images/cc.jpg" alt="" class="w-100">
  </div>
</div>

Upvotes: 1

Related Questions