DEV Community

Discussion on: Create a SPA with Laravel and Nuxt

Collapse
 
skyrpex profile image
Cristian Pallarés

Hi there! Are the images in the public/_nuxt directory after building? If not, do you use the resources/nuxt/static directory to publish images?

You could also try to import the images in your components (you'll receive the URL string) and use it in the views.

Collapse
 
robertbar profile image
RobertBar • Edited

Hi Cristian. What about the files that are stored in the Laravel storage folder? I am not able to access them. Should I try another approach or I am on the right path?

UPDATE: I have created a symlink for storage/ inside static folder. Everyhting is working as expected.

Collapse
 
rdigitalg profile image
rdigitalg

Hello, Cristian. On npm run build i can't access the files from static directory. There is something extra I need to do in order to access them? Thank you!