Аватар профиля: загрузка своего фото, заглушка кружком из CSS без него

This commit is contained in:
rsgrinko committed 2026-09-17 01:31:15 +03:00
1 parent a79e76746d
commit 167ad1eb43
10 files changed
+228 -1

No files matched your search

+5
View File
@@ -70,6 +70,11 @@ final class User extends Model
return (int) $this->raw('active') === 1;
}
public function hasAvatar(): bool
{
return trim((string) $this->raw('avatar_path')) !== '';
}
public function emailVerified(): bool
{
return trim((string) $this->raw('email_verified_at')) !== '';