It was working when i first did it and then suddenly stopped working.
This is my URL
{{url('storage/profilepictures/'.Auth::user()->profilepicture )}}
and I have already used this command
php artisan storage:link
It was working when i first did it and then suddenly stopped working.
This is my URL
{{url('storage/profilepictures/'.Auth::user()->profilepicture )}}
and I have already used this command
php artisan storage:link
use from asset
instead of URL
:
<img src="{{asset('/storage/profilepictures' .Auth::user()->profilepicture)}}" class="img-thumbnail" alt="Responsive image">
and if you want to get loggedin user photo, you can get it like below:
Auth::user()->profilepicture
or:
auth()->user()->profilepicture
First be sure that you have recorded the img in storage/app/public/profilepictures/hashed_picture and the recorded data in db is the same like the hashed_picture. If this is all right, that sentence must work
<img src="{{url('storage/profilepictures/'.Auth::user()->profilepicture)}}">