'Twitch', 'youtube' => 'YouTube', 'kick' => 'Kick', 'douyu' => 'Douyu', 'huya' => 'Huya', ]; return $platforms[$value]; } public function getStreamerUrlAttribute(): string { return match ($this->platform) { 'Twitch' => 'https://www.twitch.tv/' . $this->username, 'YouTube' => 'https://www.youtube.com/@' . $this->username, 'Kick' => 'https://kick.com/' . $this->username, 'Douyu' => 'https://www.douyu.com/' . $this->username, 'Huya' => 'https://www.huya.com/' . $this->username, }; } public function champion(): BelongsTo { return $this->belongsTo(Champion::class, 'champion_id', 'champion_id'); } }