Fix gravatar url check

This commit is contained in:
Nabeel Shahzad
2020-03-24 18:54:04 -04:00
parent 62cea3eb0c
commit eafea01e22
3 changed files with 18 additions and 3 deletions

View File

@@ -143,7 +143,9 @@ class User extends Authenticatable
public function getAvatarAttribute()
{
if (!$this->attributes['avatar']) {
return $this->gravatar();
return new File([
'path' => $this->gravatar(),
]);
}
return new File([