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:
José Bustos
2018-05-01 12:31:08 -03:00
committed by Nabeel Shahzad
parent 8aa629fc56
commit 4bc7d7735d

View File

@@ -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>