laravel file manager not showing uploaded image

Viewed 1176

I am new to laravel file manager and I'm developing a blog using tinymce5 and this package.

Everything works just fine. But...

The problem: The problem is that none of the uploaded images are being shown. neither in file manager "when it's uploaded" nor in the blog. image is not shown in file manager :

enter image description here

What I have done: Well the problem is caused by the image url. The url is the url below:

http://localhost/storage/photos/maxresdefault.jpg

When I changed it to:

http://127.0.0.1:8000/storage/photos/maxresdefault.jpg

everything worked fine.

The Question is: Is there any way to force laravel file manager to save image urls using "127.0.0.1:8000" instead of "localhost"? Or is there any way to load images using a more efficient method?

0 Answers
Related