structure updates
This commit is contained in:
@@ -51,6 +51,17 @@ class User extends Authenticatable implements PasskeyUser
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function gravatarUrl(int $size = 160): string
|
||||
{
|
||||
$email = strtolower(trim((string) $this->email));
|
||||
$hash = hash('sha256', $email);
|
||||
|
||||
return 'https://www.gravatar.com/avatar/'.$hash
|
||||
.'?s='.max(1, min($size, 2048))
|
||||
.'&d=404&r=g';
|
||||
}
|
||||
|
||||
public function roles(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(
|
||||
|
||||
Reference in New Issue
Block a user