'date', 'raw_data' => 'array', 'engagement_rate' => 'decimal:2', ]; public function getFormattedFollowersAttribute(): string { $n = $this->followers; if ($n >= 1_000_000) return round($n / 1_000_000, 1) . 'M'; if ($n >= 1_000) return round($n / 1_000, 1) . 'K'; return (string) $n; } public function getPlatformIconAttribute(): string { return match($this->platform) { 'instagram' => '📸', 'tiktok' => '🎵', 'youtube' => '▶️', default => '📱', }; } }