How to show image in navigation?

  • I want to show image in navigation

     <a :href="url+'/categories/'+this.item['translations'][0].slug">
            @{{ name }}&emsp;
            <i class="icon dropdown-right-icon" v-if="haveChildren && item.parent_id != null"></i>

    [ Here in navmenu.blade.php under layouts>header>nav-menu ]

    I tried by adding

     <img :src="url+'/public/storage/'+this.item.image_url" alt="">

    but it says image not found.

  • Hello @RK-REZA ,

    just replace the following code with your code :

    <img :src="url+'/public/storage/'+this.item.image" alt="">

    thank you

Log in to reply