structure updates

This commit is contained in:
Mark Gregory
2026-08-26 12:38:12 +01:00
parent 66fd8b0e8a
commit 138a028537
14 changed files with 819 additions and 270 deletions
+11
View File
@@ -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(