'array', ]; } public function device(): BelongsTo { return $this->belongsTo(Device::class); } public function kindLabel(): string { return match ($this->kind) { self::KIND_TELEGRAM => 'Telegram', self::KIND_WHATSAPP => 'WhatsApp', default => (string) $this->kind, }; } }