Is the profile picture stored successfully?
(Window) If yes, these are the steps I fixed it:
- Delete the shortcut folder
storagecreated at /project/public/ - Use the command php artisan storage:link again
- Refresh the webpage and it solved.
Laravel 8 and jetstream, is it really new?
I just tried installing and playing it in fortify but I can't really understand why my profile photo not showing a picture.
<!-- Current Profile Photo -->
<div class="mt-2" x-show="! photoPreview">
<img src="{{ $this->user->profile_photo_url }}"
alt="{{ $this->user->name }}"
class="rounded-full h-20 w-20 object-cover">
</div>
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:6IJbdi+QYczKeLT7yOw3OgPsHucXn1KxVUb27hTQKpU=
APP_DEBUG=true
APP_URL=http://POroti
'public' => [
'driver' => 'local',
'root' => storage_path('/public/storage'),
'url' => env('APP_URL').'/public/storage/',
'visibility' => 'public',
],
I've been trying the storage URL with this storage/app/public/ and that public/storage/ and I keep trying to change the path and can't remember which and what I took in this screenshot. All of the results are the same, the photo not showing
I thought when the laravel jet stream is completely installed. We got all of the scaffolding and doesn't need to change anything for it. Is it just me or anybody gets the same problem as mine?
SO this question is already answered in here
https://laracasts.com/discuss/channels/laravel/image-cant-loaded-when-using-laravel-jetstream
by a good guy named @Snapey.
so simply said, you have to change this APP_URL in the .env file
like so, if you are in your localhost you have to know which localhost server are you on.
In my case, it was PHP artisan serve so obviously I change my APP_URL into this http://127.0.0.1:8000, if you are at xampp, change it into localhost/htdocs or whatever your links saying.
Please or to participate in this conversation.