title: Get image url through by passing parameter in vue.js
body: <p>I have this image tag</p>
  <pre><code>&lt;img :src=&quot;getImage('450')&quot; style=&quot;height:50px;width:50px;&quot;&gt;
  </code></pre>
  <p>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.</p>
  <pre class="lang-js prettyprint-override"><code>async getImage(id){
      await axios.get(`/get-img?id=${id}`).then((response) =&gt; {
          return response.data.image;
  })
  </code></pre>
  <p>Image is stored in public/storage/image folder. Any help is highly appreciated.</p>