REFACTORING: remove gravatar from user model
This commit is contained in:
@@ -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') !!}
|
||||||
|
|||||||
Reference in New Issue
Block a user