-2

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

2 Answers2

0

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
Zia Yamin
  • 942
  • 2
  • 10
  • 34
0

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)}}">
Prospero
  • 2,190
  • 2
  • 4
  • 18