This commit is contained in:
rico-vz
2025-03-04 11:50:42 +00:00
committed by GitHub Action
parent 68d18311b4
commit 651b6f449e
5 changed files with 11 additions and 11 deletions

View File

@@ -28,11 +28,11 @@ class Streamer extends Model
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,
'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,
};
}