vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
810 stars 102 forks source link

Image paths #23

Closed glupeksha closed 5 years ago

glupeksha commented 5 years ago

I configured vanilo in my project. But when I add product images, it saved as "http://localhost/storage/5/conversions/sdf-thumbnail.jpg" which has being saved correctly, but cannot access because it missing port details. correct form should be http://localhost:8000/storage/5/conversions/sdf-thumbnail.jpg

glupeksha commented 5 years ago

is it a issue with spatie? Guess the problem is with $media->getUrl()

glupeksha commented 5 years ago

Sorry I found the issue. It was about APP_URL in .env file

InstantProgramming commented 5 years ago

capture1 capture2 capture3 Same issue here, the APP_URL looks good, even in production i have same issue.

fulopattila122 commented 5 years ago

You have to run php artisan storage:link https://laravel.com/docs/5.7/filesystem#configuration

Update: #27