REFACTORING: remove gravatar from user model

This commit is contained in:
Michal Kváček
2016-10-17 01:07:25 +02:00
parent e26e6fd460
commit aa0ef7ccc6
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -2,7 +2,6 @@
namespace App\Models; namespace App\Models;
use App\CMS\Helpers\Gravatar;
use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticableInterface; use Illuminate\Contracts\Auth\Authenticatable as AuthenticableInterface;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
@@ -51,8 +51,8 @@
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button"
aria-haspopup="true" aria-expanded="false"> aria-haspopup="true" aria-expanded="false">
<div class="img" <div class="img"
style="background-image: url('{{Auth::user()->gravatar(40)}}')"></div> style="background-image: url('{{\App\CMS\Helpers\Gravatar::img(Auth::user()->email, 40)}}')"></div>
<span class="name">{{Auth::user()->getAttribute('name')}}</span> <span class="name">{{Auth::user()->name}}</span>
</a> </a>
{!! Menu::render('profileMenu', 'profile-menu') !!} {!! Menu::render('profileMenu', 'profile-menu') !!}