Use users gravatar

This commit is contained in:
James Brooks
2014-12-04 15:36:19 +00:00
parent 0ed4b553e4
commit 9f3589836f
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -33,5 +33,8 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
$this->attributes['password'] = Hash::make($password);
}
public function getGravatarAttribute($size = 200) {
return 'https://www.gravatar.com/avatar/' . md5($this->email) . '?size=' . $size;
}
}