0

I'm having issue with Laravel storage displaying image. i've enabled virtual host but when i click on the image url it goes to http://localhost/storage/. The same issue even with php artisan serve Here is the code on my blade:

 @foreach($course->thumbnail as $key => $media)
                                    <a href="{{ $media->getUrl() }}" target="_blank" style="display: inline-block">
                                        <img src="{{ $media->getUrl('thumb') }}">
                                    </a>
                                @endforeach

Any help is appreciated,

1
  • This question can be closed as "not reproducible or typo". Commented Jul 10, 2021 at 8:42

1 Answer 1

0

I think I may have posted this too early lol, got it solved :) Apparently i forget to change the URL on the .env file to the virtual host.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.