Remote getAvatarAttribue() beacuse it cause conflict with final avatar path.
This commit is contained in:
parent
d0485f98a9
commit
41f4c76006
@ -123,20 +123,6 @@ class User extends Authenticatable
|
|||||||
$this->attributes['timezone'] = $value;
|
$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
|
* @param mixed $size Size of the gravatar, in pixels
|
||||||
* @return string
|
* @return string
|
||||||
|
Loading…
Reference in New Issue
Block a user