Src avatar
Changed src call for user avatar, this will return the correct url based on avatar attribute of User Model
This commit is contained in:
committed by
Nabeel Shahzad
parent
8aa629fc56
commit
4bc7d7735d
@@ -8,7 +8,7 @@
|
||||
@if ($user->avatar == null)
|
||||
<img src="{{ $user->gravatar(512) }}" style="width: 123px;">
|
||||
@else
|
||||
<img src="{{ url($user->avatar) }}" style="width: 123px;">
|
||||
<img src="{{ $user->avatar->url }}" style="width: 123px;">
|
||||
@endif
|
||||
</div>
|
||||
<h3 class="title">{{ $user->name }}</h3>
|
||||
|
||||
Reference in New Issue
Block a user