Support the ongoing development of Laravel.io →
Security Views
Last updated 2 years ago.
0

For an image to be viewable in the browser, it needs to be public at some level. If you don't want to put your image in the public folder, you can have a route that returns a response with the image and content-type set to the image type.

I would not put them in the views folder however. You can create a separate folder for your images or create a project folder and put all your project specific files there.

Last updated 2 years ago.
0

Ok thanks enkay, i will try it and comment here.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.