Hi, I created a laravel project after 1 day of Laravel 8 release, I was checking features of jetstream
and everything works fine except when I change Image ot doesnot show up due to some reasons, found out that the url of image shows localhost instead of localhost:8000 { which showed image},
so my query is is there any where in file I can change so that I will see the image with url :8000( Already tried .env url)
Thank you...
Make your your .env APP_URL is correct and make sure to run php artisan storage:link.
Tried it but no good.. linked storage file shows uploaded image but inspecting in browser shows localhost.
will try with fresh laravel 8 files again..
I have the same problem. is there any solution?
same problem here, and it makes the profile page ugly when it doesn't display. The image is currently in the storage folder though
Hello, I delete the storage symbolic link in the public/ directory, and run php artisan storage:link
, It works for me. Cache error?
I use php artisan view:clear
, and doesn't works.
This issue is resolved my changing the APP_URL=http://sitename.test in your .ENV to what you have your domain parked as (Using Valet).
i use the .vm url so i changed mine to sitename.vm and my mugshot shows correctly.
Make your your .env APP_URL is correct and make sure to run php artisan storage:link.
Thanks! It worked for me.
I made a fresh Laravel 8 folder and it worked smooth.
Thank you everyone.
skino2019 锌褉邪胁! 袙褋褢 蟹邪褉邪斜芯褌邪谢芯 锌褉械泻褉邪褋薪芯 - 谢懈褔薪芯 写谢褟 屑械薪褟:
Just delete or comment the APP_URL in .env, it should work just fine!
After correction of APP_URL,
run this :
php artisan optimize:clear
I had the same problem, my profile photo had wrong url
http://myproject.test/myproject.test/storage/profile-photos/nf4U3SAgD8jAec1Q41lARqNxpSUSFUcPoBS5RQxG.jpeg
Duplicated myproject.test
APP_URL=myproject.test
I changed to
APP_URL=http://myproject.test
and everything is ok now. Don't forget to add http://
I solved this! If you use a virtual dev environment like Vagrant which I do. Your storage link might be linked to your local path and not your environment dev path. When I checked mines was linked to the local path. I was being careless and was not using my vagrant ssh. Once was in vagrant ssh I removed the storage link in public: rm -r public/storage and re added it with php artisan storage:link that fixed it. Im sure this issue can occur in other environments as well.
Most helpful comment
Make your your .env APP_URL is correct and make sure to run php artisan storage:link.