3

How can i access public folder image? I imported a folder from the internet and it is not letting me implement the codes. I am not seeing the folder images, what is the mistake?

2
  • It has something to do with the permissions of folder, what os are you using right now? For linux you can use this command sudo chmod -R 777 <folder-name-here> Commented Jul 1, 2020 at 17:39
  • ls -lah in the terminal and check permissions. Compare it to the other files Commented Jul 2, 2020 at 1:00

1 Answer 1

2

You can access the public folder imported in your laravel by using:

asset() method in your blade, for example

<img src="{{ asset('img.jpg') }}" alt="">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.