hasOne(Member::class, 'id', 'used_count'); } public function getFromLabelAttribute() { return match ($this->from) { 'cafeg' => '朗立臣', 'teamaster' => '飲力星球', default => '未知來源', }; } }