When I update the profile picture on my Laravel (5.5) Spark (5.0) app, although it uploads the picture correctly, it does not display in the app.
My APP_URL
entry in .env
is correct.
I have run php artisan storage:link
.
I have confirmed that the image in the database (/storage/profiles/fPLKc4SXY8ivpMGublIiNtZx2ZGjdcPq7f2kAHBV.jpeg
) exists in storage/app/profiles
and in public/storage/profiles
.
But when I look at the Network tab in Chrome it shows a 403
error when it tries to fetch the image.
You probably don't have the latest source, but this is a known issue: https://github.com/laravel/spark/issues/593
and specifically if you want to make this change to your source files...
https://github.com/laravel/spark/commit/e163ac68919b7c29ae703dbf8cd350e4670030d8