'array']; public function device(): BelongsTo { return $this->belongsTo(Device::class); } public function state(): HasOne { return $this->hasOne(DeviceState::class); } }