ホーム画面のレイアウト変更
This commit is contained in:
10
app/User.php
10
app/User.php
@@ -29,4 +29,14 @@ class User extends Authenticatable
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* このユーザのメールアドレスから、Gravatarの画像URLを生成します。
|
||||
* @param int $size 画像サイズ
|
||||
* @return string Gravatar 画像URL
|
||||
*/
|
||||
public function getProfileImageUrl($size = 30) : string {
|
||||
$hash = md5(strtolower(trim($this->email)));
|
||||
return '//www.gravatar.com/avatar/' . $hash . '?s=' . $size;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user