I have this Vue component inside resources/js/components in my laravel project, and I'm trying to reference a static image but I cant get it right.
I tried placing this image in my public/imgs path and tried the following code in my vue component but none worked:
<img src="imgs/sample.jpg">
<img :src="require('imgs/sample.jpg')">
I tried placing it at a different location - resources/imgs - but it didn't work as well:
<img src="../imgs/sample.jpg">
<img :src="require('../imgs/sample.jpg')">
What is the proper way of referencing this static image?
<img src="/imgs/sample.jpg">?? (If they are located in your/public/imgs/folder)