'integer', 'clay' => 'integer', 'iron' => 'integer', 'every' => 'integer', 'paused' => 'boolean', 'next_at' => 'immutable_datetime', 'last_sent_at' => 'immutable_datetime', 'last_cargo' => 'array', ]; } public function village(): BelongsTo { return $this->belongsTo(Village::class); } public function target(): BelongsTo { return $this->belongsTo(Village::class, 'target_id'); } /** @return array{wood: int, clay: int, iron: int} */ public function amounts(): array { return ['wood' => $this->wood, 'clay' => $this->clay, 'iron' => $this->iron]; } }