'boolean', 'past_brands' => 'array', ]; /** Get the singleton profile, creating defaults if needed */ public static function getSingleton(): self { return static::firstOrCreate([], [ 'owner_name' => config('app.name', 'Cathy Page'), 'bg_color' => '#FFF8F0', 'accent_color' => '#FFB7C5', 'text_color' => '#374151', 'show_prices' => true, ]); } public function getWhatsappUrlAttribute(): ?string { if (! $this->whatsapp) return null; $number = preg_replace('/[^0-9]/', '', $this->whatsapp); return "https://wa.me/{$number}"; } public function getLogoUrlAttribute(): ?string { return $this->logo_path ? route('files.serve-profile-logo') : null; } }