Display placeholder avatar if user hasn't uploaded avatar yet on layout view
MODIFY
resources/views/layout.blade.php
resources/views/layout.blade.php
</li>
<li class="dropdown">
<a href="#" class="dropdown__toggle">
- <img src="/storage/avatars/{{ Auth::user()->avatar }}" class="avatar mr-05" /> <i class="fas fa-caret-down fa-sm"></i>
+ <img src="{{ Auth::user()->avatar ? '/storage/avatars/' . Auth::user()->avatar : 'http://placehold.it/50x50' }}" class="avatar mr-05" /> <i class="fas fa-caret-down fa-sm"></i>
</a>
<ul class="dropdown__list">
<li>

Display placeholder avatar if user hasn't uploaded avatar yet on layout view