Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Avoid calling Auth multiple times. #237

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/resources/views/auth/account/sidemenu.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="box">
<div class="box-body box-profile">
<img class="profile-user-img img-responsive img-circle" src="{{ backpack_avatar_url(Auth::user()) }}">
<h3 class="profile-username text-center">{{ Auth::user()->name }}</h3>
<img class="profile-user-img img-responsive img-circle" src="{{ backpack_avatar_url($user) }}">
<h3 class="profile-username text-center">{{ $user->name }}</h3>
</div>

<hr class="m-t-0 m-b-0">
Expand Down