Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adamg42685's avatar

Where to put Assets(Logos, Images, etc) using Inertia/Vue?

Hey all, I'm building my website in Laravel with InertiaJS and Vue, one thing I cant find any clear answer on is what I do with images that are static and necessary for my site. Lets say I have a banner, in what directory do I store that banner and Im assuming to access it I need a controller to pull the path from the database? If someone can give me some insight into this and clarify it for me, I'd appreciate it. Thank you and Happy Holidays!

0 likes
1 reply
christian-qode's avatar

I'd store them in the resources/images directory and make sure that directory is copied to public/images by Laravel Mix (I assume that's the default behavior).

My (logo) component looks like this:

<template>
    <img class="block h-10 w-auto m-auto" src="/images/logo.svg" alt="Logo" />
</template>
1 like

Please or to participate in this conversation.