Add User avatarUrl helper and harden dashboard billing lookup.
Deploy Ladill QR Plus / deploy (push) Successful in 23s

Fixes dashboard 500 after SSO when layout renders profile avatar.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-06 21:55:13 +00:00
co-authored by Cursor
parent 50403e93f4
commit 9fc9db8a2f
2 changed files with 20 additions and 1 deletions
+7
View File
@@ -44,4 +44,11 @@ class User extends Authenticatable
['credit_balance' => 0, 'qr_codes_total' => 0, 'scans_total' => 0, 'status' => QrWallet::STATUS_ACTIVE],
);
}
public function avatarUrl(): ?string
{
$url = trim((string) $this->avatar_url);
return $url !== '' ? $url : null;
}
}