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.
update-profile-information-form
<!-- 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>
.Env
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:6IJbdi+QYczKeLT7yOw3OgPsHucXn1KxVUb27hTQKpU=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
config/filesystems
'public' => [
'driver' => 'local',
'root' => storage_path('/public/storage'),
'url' => env('APP_URL').'/public/storage/',
'visibility' => 'public',
],
Is the profile picture stored successfully?
(Window) If yes, these are the steps I fixed it:
i did this: delete (APP_URL) on filesystems.php and this solves my problem, the profile picture is not showing on jetstream
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('').'/storage',
'visibility' => 'public',
],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With