I have this image tag
<img :src="getImage('450')" style="height:50px;width:50px;">
Here 450 is the image id that i want to get i'm able to get this image name in the getImage function and i want to render the image which is returned by getImage method but current scenario is image name is being returned but image is not rendered inside image tag.
async getImage(id){
await axios.get(`/get-img?id=${id}`).then((response) => {
return response.data.image;
})
Image is stored in public/storage/image folder. Any help is highly appreciated.