Remote getAvatarAttribue() beacuse it cause conflict with final avatar path.

This commit is contained in:
Jose Miguel Bustos Espinoza 2018-04-30 22:22:59 -03:00 committed by Nabeel Shahzad
parent d0485f98a9
commit 41f4c76006

View File

@ -123,20 +123,6 @@ class User extends Authenticatable
$this->attributes['timezone'] = $value;
}
/**
* Return a File model
*/
public function getAvatarAttribute()
{
if (!$this->attributes['avatar']) {
return null;
}
return new File([
'path' => $this->attributes['avatar']
]);
}
/**
* @param mixed $size Size of the gravatar, in pixels
* @return string